You are here

function menu_pathauto_node in Pathauto 5

File

./pathauto_menu.inc, line 13
This is pathauto_menu.inc, an submodule for pathauto.module

Code

function menu_pathauto_node($op, $node = NULL) {
  switch ($op) {
    case 'placeholders':
      $placeholders = array();
      $placeholders[t('[menu]')] = t('The name of the menu the node belongs to.');
      $placeholders[t('[menupath]')] = t('The menu path (as reflected in the breadcrumb), not including Home or [menu].');
      return $placeholders;
    case 'values':
      $results = pathauto_menu_get_placeholders('node/' . $node->nid);
      return $results;
    default:
      break;
  }
}