1 form_test.module form_test_programmatic_form_submit($form, &$form_state)

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.

File

core/modules/simpletest/tests/form_test.module, line 2130
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'];
}