You are here

function nodehierarchy_pathauto_get_placeholders in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy_pathauto.inc \nodehierarchy_pathauto_get_placeholders()

Generate the hierarchy placeholders.

Parameters

$node: The node object generate placeholders for.

Return value

An array with relevant placeholders.

1 call to nodehierarchy_pathauto_get_placeholders()
nodehierarchy_pathauto_node in ./nodehierarchy_pathauto.inc
Implementation of hook_pathauto_node().

File

./nodehierarchy_pathauto.inc, line 39
pathauto.module v1 integration functions for nodehierarchy.module pathauto v2 uses token for generation makingt his file obsolete

Code

function nodehierarchy_pathauto_get_placeholders($node) {
  $placeholders = array();
  $placeholders[t('[hierarchypath]')] = nodehierarchy_pathauto_get_hierarchypath($node->nid);
  $placeholders[t('[fullhierarchypath]')] = nodehierarchy_pathauto_get_fullhierarchypath($node->nid);
  return $placeholders;
}