Commit 87a6afbb authored by Kjartan's avatar Kjartan
Browse files

- fixed a bug in module_invoke_all , it will now also add 0's to the result

  array. Thanks Moshe. (Didn't I commit this already?)
parent 984dfaa7
......@@ -27,7 +27,8 @@ 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)) {
if ($result = module_invoke($name, $hook, $a1, $a2, $a3, $a4)) {
$result = module_invoke($name, $hook, $a1, $a2, $a3, $a4);
if (isset($result)) {
$return = array_merge($return, $result);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment