function batch_test_nested_drupal_form_submit

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

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.