You are here

function pay_hook_info in Pay 6

Implementation of hook_hook_info().

1 call to pay_hook_info()
pay_action_info in includes/pay.action.inc
Implements hook_action_info().
1 string reference to 'pay_hook_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_hook_info() {
  $hooks = array(
    'pay' => array(
      'pay' => array(),
    ),
  );
  foreach (pay_handlers('pay_form') as $name => $info) {
    $replace = array(
      '@type' => $info['title'],
    );
    $hooks['pay']['pay'][$name . '_transaction_create'] = array(
      'runs when' => t('@type: A new payment transaction is created but no payment activites have been attempted', $replace),
    );
    $hooks['pay']['pay'][$name . '_activity_create'] = array(
      'runs when' => t('@type: A payment activity has occurred, but the transaction is not yet complete', $replace),
    );
    $hooks['pay']['pay'][$name . '_transaction_complete'] = array(
      'runs when' => t('@type: A payment transaction has been completed', $replace),
    );
    $hooks['pay']['pay'][$name . '_goal'] = array(
      'runs when' => t('@type: The form has a goal amount and that goal has been reached', $replace),
    );
  }
  return $hooks;
}