diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-15 11:45:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-15 11:45:04 +0000 |
commit | 97fdc491917f6f12d734cb13bf2101cfc12096fd (patch) | |
tree | 6705139d65bdbbfd0c7ccb7c59f9442bd6a5cd7d /modules/node/node.module | |
parent | 10104ba94ac7a70b2be3594cb769034582533e1f (diff) | |
download | brdo-97fdc491917f6f12d734cb13bf2101cfc12096fd.tar.gz brdo-97fdc491917f6f12d734cb13bf2101cfc12096fd.tar.bz2 |
- Patch #334030 by justinrandell: replace module_list with module_implements when calling a hook.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 8c8ecd48a..b64dbdebf 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -716,8 +716,8 @@ function node_invoke(&$node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL) { function node_invoke_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { $return = array(); $hook = 'nodeapi_' . $op; - foreach (module_implements($hook) as $name) { - $function = $name . '_' . $hook; + foreach (module_implements($hook) as $module) { + $function = $module . '_' . $hook; $result = $function($node, $a3, $a4); if (isset($result) && is_array($result)) { $return = array_merge($return, $result); |