Time for action — using hook_form_FORM_ID_alter to modify our Webform-based contact form
The first thing we need to do in order to use this hook is to get the
FORM_ID of our Webform-based contact form. The
hook_form_FORM_ID_alter core hook is executed for a specific form based on the ID of the form. To find the ID of our Webform-based contact form, we will once again turn to the trusty Devel module.
- Open up our d7dev site in your favorite browser, click on the Find content link in the Shortcuts bar, and click on the Contact Form of TYPE Webform.
- Once the Webform content has loaded, click on the Devel tab.
- Next, on the DEVEL overlay, click on the