function batch_test_nested_drupal_form_submit

7.x batch_test.module batch_test_nested_drupal_form_submit($value = 1)

Menu callback: programmatically submits a form within a batch.

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

File

drupal-7.x/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');
}