1 batch_test.module batch_test_programmatic($value = 1)

Menu callback: programmatically submits the 'Chained' form.

File

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

Code

function batch_test_programmatic($value = 1) {
  $form_state = array(
    'values' => array('value' => $value)
  );
  backdrop_form_submit('batch_test_chained_form', $form_state);
  return 'Got out of a programmatic batched form.';
}