We will use the
dpm function from the Devel module to help us get started with the first approach, then we will utilize the core
hook_form_FORM_ID_alter hook to alter the core contact form. We will be adding this code to the
template.php file of our custom
d7dev_theme for the purpose of demonstrating adding code in a Drupal theme versus a custom module. If we wanted to ensure that these customizations would be available across all themes, then we would want to add the code to a custom module.
template.phpfile in our custom theme at