From: Janusz Dobrowolski Date: Sun, 13 Feb 2011 08:53:53 +0000 (+0000) Subject: Fixed hook_invoke_all X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=23e6f3a5b915b531e747eb838a3dedbeb5e1e139;p=textcart.git Fixed hook_invoke_all --- diff --git a/includes/hooks.inc b/includes/hooks.inc index 41bfde1..716b6d9 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.