1 ajax_forms_test.module | ajax_forms_test_advanced_commands_settings_callback($form, $form_state) |
Ajax callback for 'settings'.
File
- core/
modules/ simpletest/ tests/ ajax_forms_test.module, line 410 - Simpletest mock module for Ajax forms testing.
Code
function ajax_forms_test_advanced_commands_settings_callback($form, $form_state) {
$commands = array();
$setting['ajax_forms_test']['foo'] = 42;
$commands[] = ajax_command_settings($setting);
return array('#type' => 'ajax', '#commands' => $commands);
}