node_hook

5 node.module node_hook(&$node, $hook)
6 node.module node_hook(&$node, $hook)
7 node.module node_hook($node, $hook)
8 node.module node_hook($type, $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.

5 calls to node_hook()

File

modules/node/node.module, line 873
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_hook($node, $hook) {
  $base = node_type_get_base($node);
  return module_hook($base, $hook);
}
Login to post comments