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
bbe2e847
Commit
bbe2e847
authored
Aug 17, 2008
by
Dries
Browse files
- Patch
#296302
by chx: remove PHP 5.1 hack now the minimum requirement is PHP 5.2.
parent
553d8885
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/module.inc
View file @
bbe2e847
...
...
@@ -412,13 +412,7 @@ function module_implements($hook, $sort = FALSE, $refresh = FALSE) {
}
registry_cache_hook_implementations
(
array
(
'hook'
=>
$hook
,
'modules'
=>
$implementations
[
$hook
]));
// The explicit cast forces a copy to be made. This is needed because
// $implementations[$hook] is only a reference to an element of
// $implementations and if there are nested foreaches (due to nested node
// API calls, for example), they would both manipulate the same array's
// references, which causes some modules' hooks not to be called.
// See also http://www.zend.com/zend/art/ref-count.php.
return
(
array
)
$implementations
[
$hook
];
return
$implementations
[
$hook
];
}
/**
...
...
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