function batch_test_programmatic
7.x batch_test.module | batch_test_programmatic($value = 1) |
Menu callback: programmatically submits the 'Chained' form.
1 string reference to 'batch_test_programmatic'
- batch_test_menu in drupal-7.x/
modules/ simpletest/ tests/ batch_test.module - Implement hook_menu().
File
- drupal-7.x/
modules/ simpletest/ tests/ batch_test.module, line 259 - Helper module for the Batch API tests.
Code
function batch_test_programmatic($value = 1) {
$form_state = array(
'values' => array('value' => $value)
);
drupal_form_submit('batch_test_chained_form', $form_state);
return 'Got out of a programmatic batched form.';
}