| Versions | |
|---|---|
| 4.7 – 6 | node_hook(&$node, $hook) |
| 7 | node_hook($node, $hook) |
Determine whether a node hook exists.
&$node Either a node object, node array, or a string containing the node type.
$hook A string containing the name of the hook.
TRUE iff the $hook exists in the node type of $node.
modules/
<?php
function node_hook(&$node, $hook) {
return module_hook(node_get_base($node), $hook);
}
?>