You are here

function pay::drupal_invoke in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay.inc \pay::drupal_invoke()

Execute an named Drupal hook function, passing $this as the first parameter.

4 calls to pay::drupal_invoke()
pay::save in includes/handlers/pay.inc
pay_form::form_submit in includes/handlers/pay_form.inc
pay_transaction::delete in includes/handlers/pay_transaction.inc
Delete this transaction.
pay_transaction::update_status in includes/handlers/pay_transaction.inc

File

includes/handlers/pay.inc, line 387
The base class for the Payment API.

Class

pay
@file The base class for the Payment API.

Code

function drupal_invoke($hook, $values = array()) {
  foreach (module_implements($hook) as $name) {
    $func = $name . '_' . $hook;
    $func($this, $values);
  }
}