You are here

function _form_test_submit_values_json in Drupal 7

Form submit handler to return form values as JSON.

1 string reference to '_form_test_submit_values_json'
form_test_checkboxes_radios in modules/simpletest/tests/form_test.module
Form constructor to test expansion of #type checkboxes and radios.

File

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

Code

function _form_test_submit_values_json($form, &$form_state) {
  drupal_json_output($form_state['values']);
  drupal_exit();
}