You are here

function batch_test_mock_form in Drupal 7

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
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;
}