You are here

function hook_npop_ajax_alter in Node pop-up 7

Alert ajax commands before popup window open.

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

Parameters

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

object $node: The popup node object.

1 invocation of hook_npop_ajax_alter()
npop_ajax_load_node in ./npop.module
Ajax node loading callback.

File

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

Code

function hook_npop_ajax_alter(array &$commands, $node) {

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