function batch_test_mock_form
A simple form with a textfield and submit button.
1 string reference to 'batch_test_mock_form'
- _batch_test_nested_drupal_form_submit_callback in modules/
simpletest/ tests/ batch_test.module - Batch operation: submits form_test_mock_form using drupal_form_submit().
File
-
modules/
simpletest/ tests/ batch_test.module, line 290
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.