1 form_example_tutorial.inc form_example_tutorial_8_page_two_back($form, &$form_state)

Back button handler submit handler.

Since #limit_validation_errors = array() is set, values from page 2 will be discarded. We load the page 1 values instead.

File

modules/examples/form_example/form_example_tutorial.inc, line 489
This is the Form API Tutorial, originally from the Backdrop handbook.

Code

function form_example_tutorial_8_page_two_back($form, &$form_state) {
  $form_state['values'] = $form_state['page_values'][1];
  $form_state['page_num'] = 1;
  $form_state['rebuild'] = TRUE;
}