function pay_trigger_info in Pay 7
Implementation of hook_trigger_info().
1 call to pay_trigger_info()
- pay_action_info in includes/
pay.action.inc - Implements hook_action_info().
1 string reference to 'pay_trigger_info'
- pay_action_info in includes/
pay.action.inc - Implements hook_action_info().
File
- includes/
pay.trigger.inc, line 11 - Implements hooks that are pertinent to the trigger module.
Code
function pay_trigger_info() {
$hooks = array(
'pay' => array(),
);
foreach (pay_handlers('pay_form') as $name => $info) {
$replace = array(
'@type' => $info['title'],
);
$hooks['pay'][$name . '_transaction_create'] = array(
'label' => t('@type: A new payment transaction is created but no payment activites have been attempted', $replace),
);
$hooks['pay'][$name . '_activity_create'] = array(
'label' => t('@type: A payment activity has occurred, but the transaction is not yet complete', $replace),
);
$hooks['pay'][$name . '_transaction_complete'] = array(
'label' => t('@type: A payment transaction has been completed', $replace),
);
$hooks['pay'][$name . '_goal'] = array(
'label' => t('@type: The form has a goal amount and that goal has been reached', $replace),
);
}
return $hooks;
}