You are here

function ad_actions_adapi in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 actions/ad_actions.module \ad_actions_adapi()
  2. 7 actions/ad_actions.module \ad_actions_adapi()

Implementation of hook_adapi().

File

actions/ad_actions.module, line 78
Enable ad triggers and actions.

Code

function ad_actions_adapi($op, $node) {
  if ($op == 'statistics_increment') {

    // trigger whenever statistics are incremented
    module_invoke_all('ad_actions_trigger', $node['action'], $node);
  }
}