function menu_token_help in Menu Token 9.1.x
Same name and namespace in other branches
- 8 menu_token.module \menu_token_help()
Implements hook_help().
File
- ./
menu_token.module, line 19 - Contains menu_token.module.
Code
function menu_token_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the menu_token module.
case 'help.page.menu_token':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Menu Token module provides tokens, that can be used in title or in path of menu items (links). For example, if you create a menu item with path: "user/[current-user:uid]", the url will be changed on the fly to: "user/1" (assuming you are user 1).') . '</p>';
return $output;
default:
break;
}
}