function nodehierarchy_token_get_fullhierarchytitlepath in Node Hierarchy 6.2
Same name and namespace in other branches
- 5 nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
- 6.3 includes/nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
- 6 nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
2 calls to nodehierarchy_token_get_fullhierarchytitlepath()
- nodehierarchy_token_get_hierarchytitlepath in includes/
nodehierarchy_token.inc - nodehierarchy_token_values in includes/
nodehierarchy_token.inc - Implementation of hook_token_values().
File
- includes/
nodehierarchy_token.inc, line 72 - token.module integration functions for nodehierarchy.module
Code
function nodehierarchy_token_get_fullhierarchytitlepath($node, $raw = TRUE) {
$title = $raw ? $node->title : check_plain($node->title);
// return the hierarchy path with the converted title
return trim(nodehierarchy_token_get_hierarchytitlepath($node->nid, $raw) . "/" . $title, "/");
}