1.20.x form_test.module | form_test_cache_form($form, &$form_state) |
A simple form for testing form caching.
File
- modules/
simpletest/ tests/ form_test.module, line 970 - Helper module for the form API tests.
Code
function form_test_cache_form($form, &$form_state) {
$form['title'] = array(
'#type' => 'textfield',
'#title' => 'Title',
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Save',
);
return $form;
}