- Small improvement. Patch by Moshe.
parent
c10ce14d1e
commit
8f673be382
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue