function form_test_html_id

Builds a simple form to test duplicate HTML IDs.

1 string reference to 'form_test_html_id'
form_test_double_form in drupal/core/modules/system/tests/modules/form_test/form_test.module
Menu callback returns two instances of the same form.

File

drupal/core/modules/system/tests/modules/form_test/form_test.module, line 2362
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;
}