node_hook
- Versions
- 4.6 – 6
node_hook(&$node, $hook)- 7
node_hook($node, $hook)
Determine whether a node hook exists.
Parameters
$node A node object or a string containing the node type.
$hook A string containing the name of the hook.
Return value
TRUE if the $hook exists in the node type of $node.
Code
modules/node/node.module, line 808
<?php
function node_hook($node, $hook) {
$base = node_type_get_base($node);
return module_hook($base, $hook);
}
?>Login or register to post comments 