You are here

function dialog_test_dialog_close in Dialog 7.2

Menu callback: Close the ajax dialog.

1 string reference to 'dialog_test_dialog_close'
dialog_test_menu in tests/dialog_test.module
Implements hook_menu().

File

tests/dialog_test.module, line 186
A dummy module for testing dialog related hooks.

Code

function dialog_test_dialog_close() {
  $commands = array(
    '#type' => 'ajax',
    '#commands' => array(),
  );
  $commands['#commands'][] = dialog_command_close_dialog('#ajax-test-dialog-wrapper-1');
  return $commands;
}