1.20.x batch_test.module batch_test_nested_backdrop_form_submit($value = 1)

Menu callback: programmatically submits a form within a batch.

File

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

Code

function batch_test_nested_backdrop_form_submit($value = 1) {
  // Set the batch and process it.
  $batch['operations'] = array(
    array('_batch_test_nested_backdrop_form_submit_callback', array($value)),
  );
  batch_set($batch);
  batch_process('batch-test/redirect');
}