You are here

function pay_actions_do in Pay 7

Same name and namespace in other branches
  1. 6 includes/pay.trigger.inc \pay_actions_do()

Helper function to call 'actions_do'

3 calls to pay_actions_do()
pay_pay_activity_create in includes/pay.trigger.inc
Implementation of hook_pay_activity_create().
pay_pay_transaction_complete in includes/pay.trigger.inc
Implementation of hook_pay_transaction_complete().
pay_pay_transaction_create in includes/pay.trigger.inc
Implementation of hook_pay_transaction_create().

File

includes/pay.trigger.inc, line 62
Implements hooks that are pertinent to the trigger module.

Code

function pay_actions_do($hook, &$object) {
  if (module_exists('trigger')) {
    $context = array();
    foreach (trigger_get_assigned_actions('pay') as $aid => $action_info) {
      if ($aid) {
        actions_do($aid, $object, $context);
      }
    }
  }
}