function _form_test_submit_values_json
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
Code
function _form_test_submit_values_json($form, &$form_state) {
drupal_json_output($form_state['values']);
drupal_exit();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.