| 7 node.module | _node_extract_type($node) |
| 8 node.module | _node_extract_type($node) |
Extract the type name.
Parameters
$node: Either a string or object, containing the node type information.
Return value
Node type of the passed-in data.
3 calls to _node_extract_type()
File
- modules/
node/ node.module, line 369 - 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_extract_type($node) {
return is_object($node) ? $node->type : $node;
}
Login or register to post comments