You are here

function batch_test_simple_form_submit in Drupal 7

Submit handler for the simple form.

File

modules/simpletest/tests/batch_test.module, line 121
Helper module for the Batch API tests.

Code

function batch_test_simple_form_submit($form, &$form_state) {
  batch_test_stack(NULL, TRUE);
  $function = '_batch_test_' . $form_state['values']['batch'];
  batch_set($function());
  $form_state['redirect'] = 'batch-test/redirect';
}