function batch_test_simple_form

Simple form.

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

File

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

Code

function batch_test_simple_form() {
    $form['batch'] = array(
        '#type' => 'select',
        '#title' => 'Choose batch',
        '#options' => array(
            'batch_0' => 'batch 0',
            'batch_1' => 'batch 1',
            'batch_2' => 'batch 2',
            'batch_3' => 'batch 3',
            'batch_4' => 'batch 4',
        ),
    );
    $form['submit'] = array(
        '#type' => 'submit',
        '#value' => 'Submit',
    );
    return $form;
}

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