You are here

function menu_token_menu in Menu Token 7

Same name and namespace in other branches
  1. 5 menu_token.module \menu_token_menu()

Implements hook_menu().

File

./menu_token.module, line 607
Main module file for the Menu Token module.

Code

function menu_token_menu() {
  $items = array();
  $items['menutoken'] = array(
    'title' => "Dummy Menu Token item",
    'access callback' => TRUE,
    'page callback' => 'theme_menu_token_uses_tokens',
  );
  $items['admin/config/menu_token'] = array(
    'title' => 'Menu Token',
    'description' => 'Configure the Menu Token module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_token_settings_form',
    ),
    'access arguments' => array(
      'administer menu_token',
    ),
    'file' => 'menu_token.admin.inc',
  );
  return $items;
}