You are here

function nodehierarchy_token_get_hierarchytitlepath in Node Hierarchy 6

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

File

./nodehierarchy_token.inc, line 74
token.module integration functions for nodehierarchy.module

Code

function nodehierarchy_token_get_hierarchytitlepath($node, $raw = TRUE) {

  // the hierarchy path is the parent node's full hierarchy path
  if ($node->parent) {
    return nodehierarchy_token_get_fullhierarchytitlepath(node_load($node->parent));
  }
  return "";
}