You are here

function menu_views_token_info in Menu Views 7.2

Same name and namespace in other branches
  1. 8.3 menu_views.module \menu_views_token_info()
  2. 7 includes/tokens.inc \menu_views_token_info()

Implements hook_token_info().

File

./menu_views.module, line 576
Module to allow Views to be attached as menu items.

Code

function menu_views_token_info() {
  $tokens['tokens']['menu-link']['node'] = array(
    'name' => t('Node'),
    'description' => t('The node of the menu link.'),
    'type' => 'node',
  );
  $tokens['tokens']['menu-link']['parent']['node'] = array(
    'name' => t('Node'),
    'description' => t('The node of the menu link\'s parent.'),
    'type' => 'node',
  );
  return $tokens;
}