function _devel_node_access_module_invoke_all in Devel 5
Same name and namespace in other branches
- 6 devel_node_access.module \_devel_node_access_module_invoke_all()
- 7 devel_node_access.module \_devel_node_access_module_invoke_all()
1 call to _devel_node_access_module_invoke_all()
File
- ./
devel_node_access.module, line 187 - This module gives developers feedback as to what their node_access table contains, and which nodes are protected or visible to the public.
Code
function _devel_node_access_module_invoke_all() {
// array returns only!
$args = func_get_args();
$hook = array_shift($args);
$return = array();
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$result = call_user_func_array($function, $args);
if (isset($result)) {
foreach ($result as $key => $value) {
// add name of module that returned the value:
$result[$key]['#module'] = $module;
}
$return = array_merge($return, $result);
}
}
return $return;
}