1 form_test.module | form_test_color($form, &$form_state) |
Form constructor for testing #type 'color' elements.
See also
Related topics
File
- core/
modules/ simpletest/ tests/ form_test.module, line 1501 - Helper module for the Form API tests.
Code
function form_test_color($form, &$form_state) {
$form['color'] = array(
'#type' => 'color',
'#title' => 'Color',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
return $form;
}