1 form_test.module form_test_cache_form($form, &$form_state)

A simple form for testing form caching.

File

core/modules/simpletest/tests/form_test.module, line 1011
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;
}