You are here

function site_map_menu in Site map 5

Same name and namespace in other branches
  1. 6.2 site_map.module \site_map_menu()
  2. 6 site_map.module \site_map_menu()
  3. 7 site_map.module \site_map_menu()

Implementation of hook_menu().

File

./site_map.module, line 179
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function site_map_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/sitemap',
      'title' => t('Site map'),
      'description' => t('Control what should be displayed on the site map.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'site_map_admin_settings',
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'sitemap',
      'title' => t('Site map'),
      'description' => t('Display a site map with RSS feeds.'),
      'callback' => 'site_map_page',
      'access' => user_access('access site map'),
      'type' => MENU_SUGGESTED_ITEM,
    );
  }
  return $items;
}