From: Janusz Dobrowolski Date: Sun, 13 Feb 2011 08:53:53 +0000 (+0000) Subject: Fixed hook_invoke_all X-Git-Tag: 2.3-final~801 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d112e8485fd68c647bd0dc4d80900dc0f76e3eaa;p=fa-stable.git Fixed hook_invoke_all --- diff --git a/includes/hooks.inc b/includes/hooks.inc index 41bfde10..716b6d93 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -246,7 +246,7 @@ function hook_invoke_all($method, &$data, $opts=null) global $Hooks; - $result = array(); + $return = array(); foreach($Hooks as $ext => $hook) if (method_exists($hook, $method)) { set_ext_domain('modules/'.$ext); @@ -258,7 +258,7 @@ function hook_invoke_all($method, &$data, $opts=null) } } set_ext_domain(); - return $result; + return $return; } /* Returns first non-null result returned from hook.