function batch_test_programmatic

Menu callback: programmatically submits the 'Chained' form.

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

File

modules/simpletest/tests/batch_test.module, line 259

Code

function batch_test_programmatic($value = 1) {
    $form_state = array(
        'values' => array(
            'value' => $value,
        ),
    );
    drupal_form_submit('batch_test_chained_form', $form_state);
    return 'Got out of a programmatic batched form.';
}

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