diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-21 19:10:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-21 19:10:47 +0000 |
commit | 8f673be382023a2bcbe49e072fdd647c7abfed9e (patch) | |
tree | 71870a79d5edb280cf928229ad60a660ca55ddc1 | |
parent | c10ce14d1e8b8b5200c61801bf7f7565199aa18c (diff) | |
download | brdo-8f673be382023a2bcbe49e072fdd647c7abfed9e.tar.gz brdo-8f673be382023a2bcbe49e072fdd647c7abfed9e.tar.bz2 |
- Small improvement. Patch by Moshe.
-rw-r--r-- | includes/module.inc | 8 |
1 files 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); } } |