function nodehierarchy_token_get_hierarchytitlepath in Node Hierarchy 6.2
Same name and namespace in other branches
- 5 nodehierarchy_token.inc \nodehierarchy_token_get_hierarchytitlepath()
- 6.3 includes/nodehierarchy_token.inc \nodehierarchy_token_get_hierarchytitlepath()
- 6 nodehierarchy_token.inc \nodehierarchy_token_get_hierarchytitlepath()
2 calls to nodehierarchy_token_get_hierarchytitlepath()
- nodehierarchy_token_get_fullhierarchytitlepath in includes/
nodehierarchy_token.inc - nodehierarchy_token_values in includes/
nodehierarchy_token.inc - Implementation of hook_token_values().
File
- includes/
nodehierarchy_token.inc, line 78 - token.module integration functions for nodehierarchy.module
Code
function nodehierarchy_token_get_hierarchytitlepath($nid, $raw = TRUE) {
// the hierarchy path is the parent node's full hierarchy path
$parents = nodehierarchy_get_node_parent_nids($nid);
if ($pnid = @$parents[0]) {
return nodehierarchy_token_get_fullhierarchytitlepath(node_load($pnid));
}
return "";
}