X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fhooks.inc;h=716b6d9348ea8951e511aab530573ab3975df99c;hb=25c7baa5d19f94e705ece3b8af3cb3a43b9c1830;hp=41bfde10e698d71dd511fedceec8b9d17c7b4137;hpb=1e231c727459446ef6f8439c7dac88f7fc6ae587;p=fa-stable.git 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.