Extracts the type name.
$node: Either a string or object, containing the node type information.
Node type of the passed-in data.
function _node_extract_type($node) { return is_object($node) ? $node->type : $node; }