You are here

function batch_test_nested_drupal_form_submit in Drupal 7

Menu callback: programmatically submits a form within a batch.

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

File

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

Code

function batch_test_nested_drupal_form_submit($value = 1) {

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