function hook_form_alter

Alter forms which are created using the Form API

7 functions implement hook_form_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

alerts_form_alter in modules/alerts/alerts.module
calendar_form_alter in modules/calendar/calendar.module
Implements hook_form_alter
content_form_alter in modules/content/content.module
Hook form alter, to set some defaults.
engagements_form_alter in modules/engagements/engagements.module
Implements hook_form_alter
prereqs_form_alter in modules/prereqs/prereqs.module
Implements hook_form_alter

... See full list

File

includes/hook.api.php, line 68
Lists all available hooks within FlightPath's core code.

Code

function hook_form_alter(&$form, $form_id) {
  if ($form_id == "example_form_callback") {
    $form ["new_element"] = array(
      // ...
    );
  }
}