You are here

function hook_npop_ajax_close_alter in Node pop-up 7

Alert ajax commands when popup window close.

Use this alter, if you want change ajax commands or execute your command on popup window close event.

Parameters

array $commands: An array with commands generated by module.

1 invocation of hook_npop_ajax_close_alter()
npop_ajax_close_npop in ./npop.module
Close button callback function.

File

./npop.api.php, line 53
Hooks provided by Node popup nodule.

Code

function hook_npop_ajax_close_alter(array &$commands) {

  // Alert window closed when popup close event called.
  $commands[] = ajax_command_alert('Window openned');
}