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 2647 - 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;
}