protected function PartyAcquisition::invoke in Party 7
Invoke hooks. All additional arguments are passed by reference.
Parameters
string $hook: The specific hook to fire.
$args: An array of arguments to be passed to the hook.
2 calls to PartyAcquisition::invoke()
- PartyAcquisition::acquire in includes/
party.acquisition.inc - Create or acquire a party based off the given parameters.
- PartyAcquisition::buildQuery in includes/
party.acquisition.inc - Build the query for finding a party.
File
- includes/
party.acquisition.inc, line 119 - Base classes for acquisition processes.
Class
- PartyAcquisition
- Base class for acquiring parties.
Code
protected function invoke($hook, &$args) {
// Get the arguments for our invoke.
$args[] =& $this->context;
// Fire off our hooks.
$hook = 'party_acquisition_' . $hook;
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
call_user_func_array($function, $args);
}
}