1 batch_test.module | batch_test_simple_form_submit($form, &$form_state) |
Submit handler for the simple form.
File
- core/
modules/ simpletest/ tests/ batch_test.module, line 120 - 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';
}