You are here

function batch_test_programmatic in Drupal 7

Menu callback: programmatically submits the 'Chained' form.

1 string reference to 'batch_test_programmatic'
batch_test_menu in modules/simpletest/tests/batch_test.module
Implement hook_menu().

File

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.';
}