1 batch_test.module | batch_test_mock_form($form, $form_state) |
A simple form with a textfield and submit button.
File
- core/
modules/ simpletest/ tests/ batch_test.module, line 294 - Helper module for the Batch API tests.
Code
function batch_test_mock_form($form, $form_state) {
$form['test_value'] = array(
'#type' => 'textfield',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}