function protected_node_invoke in Protected Node 7
Same name and namespace in other branches
- 6 protected_node.module \protected_node_invoke()
- 1.0.x protected_node.module \protected_node_invoke()
Module invoke.
Call module implemented functions with a parameter passed as reference instead of copy.
For calls that require multiple parameters, use an array or object.
@param[in] $hook The name of the hook to call.
@param[in,out] $param The one parameter to pass to the hook functions.
1 call to protected_node_invoke()
- protected_node_node_view in ./
protected_node.module - Implements hook_node_view().
File
- ./
protected_node.module, line 505 - Protected Node module.
Code
function protected_node_invoke($hook, &$param) {
foreach (module_implements($hook) as $module) {
call_user_func_array($module . '_' . $hook, array(
&$param,
));
}
}