Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
87a6afbb
Commit
87a6afbb
authored
Sep 30, 2002
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/module.inc
View file @
87a6afbb
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment