function menu_views_token_info in Menu Views 7
Same name and namespace in other branches
- 8.3 menu_views.module \menu_views_token_info()
- 7.2 menu_views.module \menu_views_token_info()
Implements hook_token_info().
File
- includes/
tokens.inc, line 11 - Token hooks for the menu_views module.
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;
}