You are here

function form_test_mock_form_submit in SimpleTest 7

Form submission callback.

Updates the variable 'form_test_mock_submit' to the submitted form value.

File

tests/form_test.module, line 262
Helper module for the form API tests.

Code

function form_test_mock_form_submit($form, &$form_state) {
  variable_set('form_test_mock_submit', $form_state['values']['test_value']);
}