You are here

function variable_form_alter in Variable 7

Same name and namespace in other branches
  1. 7.2 variable.module \variable_form_alter()

Implements hook_form_alter().

Triggers hook_variable_realm_settings_form_alter() giving other modules a chance to act on settings forms after other contrib modules have added their variables.

File

./variable.module, line 648
Variable API module

Code

function variable_form_alter(&$form, &$form_state, $form_id) {
  if (isset($form['#theme']) && $form['#theme'] == 'system_settings_form') {
    foreach (module_implements('variable_settings_form_alter') as $module) {
      $function = $module . '_variable_settings_form_alter';
      $function($form, $form_state, $form_id);
    }
  }
}