You are here

function menu_token_help in Menu Token 8

Same name and namespace in other branches
  1. 9.1.x 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: &quot;user/[current-user:uid]&quot;, the url will be changed on the fly to: &quot;user/1&quot; (assuming you are user 1).') . '</p>';
      return $output;
    default:
      break;
  }
}