function batch_test_programmatic

Menu callback: Submits the 'Chained' form programmatically.

1 string reference to 'batch_test_programmatic'
batch_test_menu in drupal/core/modules/system/tests/modules/batch_test/batch_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/batch_test/batch_test.module, line 280
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.';
}