function form_test_storage_form_submit
Form submit handler to finish multi-step form.
File
-
modules/
simpletest/ tests/ form_test.module, line 862
Code
function form_test_storage_form_submit($form, &$form_state) {
drupal_set_message("Title: " . check_plain($form_state['values']['title']));
drupal_set_message("Form constructions: " . $_SESSION['constructions']);
if (isset($form_state['storage']['thing']['changed'])) {
drupal_set_message("The thing has been changed.");
}
$form_state['redirect'] = 'node';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.