You are here

function nodehierarchy_pathauto_node in Node Hierarchy 6

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

Implementation of hook_pathauto_node().

File

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

Code

function nodehierarchy_pathauto_node($op, $node = NULL) {
  switch ($op) {
    case 'placeholders':
      $placeholders = array();
      $placeholders[t('[hierarchypath]')] = t('The hierarchy path of an item.');
      $placeholders[t('[fullhierarchypath]')] = t('The hierarchy path of an item including the title.');
      return $placeholders;
    case 'values':
      $results = nodehierarchy_pathauto_get_placeholders($node);
      return $results;
    default:
      break;
  }
}