Zeile 106 | Zeile 106 |
---|
* Run the hooks that have plugins. * * @param string $hook The name of the hook that is run.
|
* Run the hooks that have plugins. * * @param string $hook The name of the hook that is run.
|
* @param string $arguments The argument for the hook that is run. The passed value MUST be a variable * @return string The arguments for the hook.
| * @param mixed $arguments The argument for the hook that is run. The passed value MUST be a variable * @return mixed The arguments for the hook.
|
*/ function run_hooks($hook, &$arguments="") {
| */ function run_hooks($hook, &$arguments="") {
|
Zeile 130 | Zeile 130 |
---|
if(array_key_exists('class_method', $hook)) {
|
if(array_key_exists('class_method', $hook)) {
|
$return_args = call_user_func($hook['class_method'], $arguments);
| $return_args = call_user_func_array($hook['class_method'], array(&$arguments));
|
} else {
| } else {
|