You are here

function power_menu_token_info in Power Menu 7.2

Same name and namespace in other branches
  1. 7 power_menu.module \power_menu_token_info()

Implements hook_token_info().

File

./power_menu.tokens.inc, line 11
Builds placeholder replacement tokens for power_menu.

Code

function power_menu_token_info() {
  $types['power_menu'] = array(
    'name' => t("Power Menu"),
    'description' => t("Power Menu related tokens."),
  );
  $tokens['menu_path'] = array(
    'name' => t("Menu Path"),
    'description' => t("The menu path or alias form selected menu as token (Works at the moment only with nodes!)."),
  );
  $tokens['menu_item_names_path'] = array(
    'name' => t("Menu Item Names"),
    'description' => t("The menu names from the active menu trail."),
  );
  return array(
    'types' => $types,
    'tokens' => array(
      'power_menu' => $tokens,
    ),
  );
}