function form_test_form_alter

Same name in other branches
  1. 9 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_alter()
  2. 8.9.x core/modules/system/tests/modules/form_test/form_test.module \form_test_form_alter()
  3. 10 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_alter()
  4. 11.x core/modules/system/tests/modules/form_test/form_test.module \form_test_form_alter()

Implements hook_form_alter().

File

modules/simpletest/tests/form_test.module, line 288

Code

function form_test_form_alter(&$form, &$form_state, $form_id) {
    if ($form_id == 'form_test_alter_form') {
        drupal_set_message('form_test_form_alter() executed.');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.