1 ajax_test.module | ajax_test_dialog_close() |
Menu callback: Close the ajax dialog.
File
- core/
modules/ simpletest/ tests/ ajax_test.module, line 226 - Helper module for Ajax framework tests.
Code
function ajax_test_dialog_close() {
$commands = array(
'#type' => 'ajax',
'#commands' => array(),
);
$commands['#commands'][] = ajax_command_close_dialog('#ajax-test-dialog-wrapper-1');
return $commands;
}