1 form_test.module form_test_html_id($form, &$form_state)

Builds a simple form to test duplicate HTML IDs.

File

core/modules/simpletest/tests/form_test.module, line 2364
Helper module for the form API tests.

Code

function form_test_html_id($form, &$form_state) {
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => 'name',
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Save',
  );
  return $form;
}