_node_extract_type
function _node_extract_type
_node_extract_type($node)
Extracts the type name.
Parameters
$node: Either a string or object, containing the node type information.
Return value
Node type of the passed-in data.
File
- modules/node/node.module, line 378
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.module/function/_node_extract_type/7.x