| 7 node.module | node_type_get_name($node) |
| 8 node.module | node_type_get_name($node) |
Returns the node type name of the passed node or node type string.
Parameters
$node: A node object or string that indicates the node type to return.
Return value
The node type name or FALSE if the node type is not found.
25 calls to node_type_get_name()
File
- modules/
node/ node.module, line 450 - 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_type_get_name($node) {
$type = _node_extract_type($node);
$types = _node_types_build()->names;
return isset($types[$type]) ? $types[$type] : FALSE;
}
Login or register to post comments