You are here

function batch_test_no_form in Drupal 7

Menu callback: fire a batch process without a form submission.

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

File

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

Code

function batch_test_no_form() {
  batch_test_stack(NULL, TRUE);
  batch_set(_batch_test_batch_1());
  batch_process('batch-test/redirect');
}