function batch_test_chained_form_submit_2
7.x batch_test.module | batch_test_chained_form_submit_2($form, &$form_state) |
Submit handler #2 for the chained form.
1 string reference to 'batch_test_chained_form_submit_2'
- batch_test_chained_form in drupal-7.x/
modules/ simpletest/ tests/ batch_test.module - Form with chained submit callbacks.
File
- drupal-7.x/
modules/ simpletest/ tests/ batch_test.module, line 218 - Helper module for the Batch API tests.
Code
function batch_test_chained_form_submit_2($form, &$form_state) {
batch_test_stack('submit handler 2');
batch_test_stack('value = ' . $form_state['values']['value']);
$form_state['values']['value']++;
batch_set(_batch_test_batch_2());
// This redirect should not be taken into account.
$form_state['redirect'] = 'should/be/discarded';
}