function batch_test_mock_form

Form constructor for a simple form with a textfield and submit button.

See also

batch_test_mock_form_submit()

1 string reference to 'batch_test_mock_form'
_batch_test_nested_drupal_form_submit_callback in drupal/core/modules/system/tests/modules/batch_test/batch_test.module
Batch operation: Submits form_test_mock_form() using drupal_form_submit().

File

drupal/core/modules/system/tests/modules/batch_test/batch_test.module, line 313
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;
}