You are here

function form_test_form_alter in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/form_test/form_test.module \form_test_form_alter()
  2. 9 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
Helper module for the form API tests.

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.');
  }
}