You are here

function nodehierarchy_token_get_fullhierarchytitlepath in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 includes/nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
  2. 6 nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
  3. 6.2 includes/nodehierarchy_token.inc \nodehierarchy_token_get_fullhierarchytitlepath()
2 calls to nodehierarchy_token_get_fullhierarchytitlepath()
nodehierarchy_token_get_hierarchytitlepath in ./nodehierarchy_token.inc
nodehierarchy_token_values in ./nodehierarchy_token.inc
@file token.module integration functions for nodehierarchy.module

File

./nodehierarchy_token.inc, line 52
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, $raw) . "/" . $title, "/");
}