function pay::drupal_invoke in Pay 7
Same name and namespace in other branches
- 6 includes/handlers/pay.inc \pay::drupal_invoke()
Execute an named Drupal hook function, passing $this as the first parameter.
6 calls to pay::drupal_invoke()
- pay::save in includes/
handlers/ pay.inc - pay_form::form_submit in includes/
handlers/ pay_form.inc - pay_method::delete in includes/
handlers/ pay_method.inc - Delete this payment method.
- pay_method::disable in includes/
handlers/ pay_method.inc - Disable this payment method.
- pay_transaction::delete in includes/
handlers/ pay_transaction.inc - Delete this transaction.
File
- includes/
handlers/ pay.inc, line 443 - 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);
}
}