From 8f673be382023a2bcbe49e072fdd647c7abfed9e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 21 Dec 2002 19:10:47 +0000 Subject: - Small improvement. Patch by Moshe. --- includes/module.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/module.inc b/includes/module.inc index 545c7d2cc..e9994ba15 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -30,11 +30,9 @@ function module_invoke($name, $hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = N function module_invoke_all($hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL) { $return = array(); foreach (module_list() as $name) { - if (module_hook($name, $hook)) { - $result = module_invoke($name, $hook, $a1, $a2, $a3, $a4); - if (isset($result)) { - $return = array_merge($return, $result); - } + $result = module_invoke($name, $hook, $a1, $a2, $a3, $a4); + if (isset($result)) { + $return = array_merge($return, $result); } } -- cgit v1.2.3