function batch_test_mock_form

7.x batch_test.module batch_test_mock_form($form, $form_state)

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 drupal-7.x/modules/simpletest/tests/batch_test.module
Batch operation: submits form_test_mock_form using drupal_form_submit().

File

drupal-7.x/modules/simpletest/tests/batch_test.module, line 290
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;
}