From d112e8485fd68c647bd0dc4d80900dc0f76e3eaa Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 13 Feb 2011 08:53:53 +0000 Subject: [PATCH] Fixed hook_invoke_all --- includes/hooks.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.30.2