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-7.x/
modules/ simpletest/ tests/ form_test.module - Menu callback returns two instances of the same form.
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ form_test.module, line 1837 - Helper module for the form API tests.
Código
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;
}