function batch_example_simple_form

Same name in other branches
  1. 7.x-1.x batch_example/batch_example.module \batch_example_simple_form()

Test 1 : Simple form

Related topics

1 string reference to 'batch_example_simple_form'
batch_example_menu in batch_example/batch_example.module
Implementation of hook_menu().

File

batch_example/batch_example.module, line 76

Code

function batch_example_simple_form() {
    $form['batch'] = array(
        '#type' => 'select',
        '#title' => 'Choose batch',
        '#options' => array(
            'batch_1' => 'batch 1 - load a node 100 times',
            'batch_2' => 'batch 2 - load all nodes, 20 times',
        ),
    );
    $form['submit'] = array(
        '#type' => 'submit',
        '#value' => 'Go',
    );
    return $form;
}