You are here

function gmap_menu in GMap Module 5

Same name and namespace in other branches
  1. 6.2 gmap.module \gmap_menu()
  2. 6 gmap.module \gmap_menu()
  3. 7.2 gmap.module \gmap_menu()
  4. 7 gmap.module \gmap_menu()

Implementation of hook_menu().

File

./gmap.module, line 477
GMap -- Routines to use the Google Maps API in Drupal.

Code

function gmap_menu($may_cache) {
  if ($may_cache) {
    $items = array();
    $items[] = array(
      'path' => 'admin/settings/gmap',
      'title' => t('GMap'),
      'description' => t('Configure GMap settings'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'gmap_admin_settings',
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
    return $items;
  }
}