projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac46fe
)
Fixed hook_invoke_all
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 13 Feb 2011 08:53:53 +0000
(08:53 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 13 Feb 2011 08:53:53 +0000
(08:53 +0000)
includes/hooks.inc
patch
|
blob
|
history
diff --git
a/includes/hooks.inc
b/includes/hooks.inc
index 41bfde10e698d71dd511fedceec8b9d17c7b4137..716b6d9348ea8951e511aab530573ab3975df99c 100644
(file)
--- a/
includes/hooks.inc
+++ b/
includes/hooks.inc
@@
-246,7
+246,7
@@
function hook_invoke_all($method, &$data, $opts=null)
global $Hooks;
- $re
sult
= array();
+ $re
turn
= 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 $re
sult
;
+ return $re
turn
;
}
/*
Returns first non-null result returned from hook.