function node_hook in Drupal 4
Same name and namespace in other branches
- 5 modules/node/node.module \node_hook()
- 6 modules/node/node.module \node_hook()
- 7 modules/node/node.module \node_hook()
Determine whether a node hook exists.
Parameters
&$node: Either a node object, node array, or a string containing the node type.
$hook: A string containing the name of the hook.
Return value
TRUE iff the $hook exists in the node type of $node.
6 calls to node_hook()
- book_node_visitor_html_pre in modules/
book.module - Generates printer-friendly HTML for a node. This function is a 'pre-node' visitor function for book_recurse().
- node_feed in modules/
node.module - A generic function for generating RSS feeds from a set of nodes.
- node_invoke in modules/
node.module - Invoke a node hook.
- node_search in modules/
node.module - Implementation of hook_search().
- node_update_index in modules/
node.module - Implementation of hook_update_index().
File
- modules/
node.module, line 292 - The core that allows content to be submitted to the site.
Code
function node_hook(&$node, $hook) {
return module_hook(node_get_base($node), $hook);
}