function batch_test_chained_form_submit_4

Form submission handler #4 for batch_test_chained_form().

See also

batch_test_chained_form()

1 string reference to 'batch_test_chained_form_submit_4'
batch_test_chained_form in drupal/core/modules/system/tests/modules/batch_test/batch_test.module
Form constructor for a form with chained submit callbacks.

File

drupal/core/modules/system/tests/modules/batch_test/batch_test.module, line 266
Helper module for the Batch API tests.

Code

function batch_test_chained_form_submit_4($form, &$form_state) {
  batch_test_stack('submit handler 4');
  batch_test_stack('value = ' . $form_state['values']['value']);
  $form_state['values']['value']++;
  batch_set(_batch_test_batch_3());

  // This is the redirect that should prevail.
  $form_state['redirect'] = 'batch-test/redirect';
}