function node_hook

Determines whether a node hook exists.

Parameters

string $type: A string containing the node type.

$hook: A string containing the name of the hook.

Return value

string|false A string containing the function name or FALSE if it isn't found.

8 calls to node_hook()

File

drupal/core/modules/node/node.module, line 869
The core module that allows content to be submitted to the site.

Code

function node_hook($type, $hook) {
  $base = node_type_get_base($type);
  return module_hook($base, $hook) ? $base . '_' . $hook : FALSE;
}