You are here

function form_test_programmatic_form_submit in Drupal 7

Form submit handler for programmatic form submissions.

To test that the submission handler is correctly executed, we store the submitted values in a place we can access from the caller context.

1 string reference to 'form_test_programmatic_form_submit'
form_test_programmatic_form in modules/simpletest/tests/form_test.module
Form builder to test programmatic form submissions.

File

modules/simpletest/tests/form_test.module, line 1775
Helper module for the form API tests.

Code

function form_test_programmatic_form_submit($form, &$form_state) {
  $form_state['storage']['programmatic_form_submit'] = $form_state['values'];
}