node_get_base

Versions
4.7
node_get_base($node)

Determine the basename for hook_load etc.

Parameters

$node Either a node object, a node array, or a string containing the node type.

Return value

The basename for hook_load, hook_nodeapi etc.

▾ 3 functions call node_get_base()

node_access in modules/node.module
Determine whether the current user may perform the given operation on the specified node.
node_hook in modules/node.module
Determine whether a node hook exists.
node_invoke in modules/node.module
Invoke a node hook.

Code

modules/node.module, line 256

<?php
function node_get_base($node) {
  return _node_names('base', $node);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.