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

Form submit handler to finish multi-step form.

File

core/modules/simpletest/tests/form_test.module, line 908
Helper module for the form API tests.

Code

function form_test_storage_form_submit($form, &$form_state) {
  backdrop_set_message("Title: " . check_plain($form_state['values']['title']));
  backdrop_set_message("Form constructions: " . $_SESSION['constructions']);
  if (isset($form_state['storage']['thing']['changed'])) {
    backdrop_set_message("The thing has been changed.");
  }
  $form_state['redirect'] = '<front>';
}