menu_node_edit_token_list

Versions
menu_node_edit
menu_node_edit_token_list($type = 'all')

Implement hook_token_list().

Provides tokens for the path alias of a menu parent.

Code

./menu_node_edit.module, line 882

<?php
function menu_node_edit_token_list($type = 'all') {
  if (!menu_node_edit_tokens() || ($type != 'all' && $type != 'node')) {
    return;
  }
  $tokens = array();
  $tokens['node']['menu-parent-path-alias'] = t('Path alias of parent menu item.');
  $tokens['node']['menu-parent-path-alias-path'] = t('Path alias of parent menu item. Safe for use in URLs.');
  return $tokens;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List