You are here

function gmap_location_menu in GMap Module 7.2

Same name and namespace in other branches
  1. 5 gmap_location.module \gmap_location_menu()
  2. 6.2 gmap_location.module \gmap_location_menu()
  3. 6 gmap_location.module \gmap_location_menu()
  4. 7 gmap_location.module \gmap_location_menu()

Implements hook_menu().

File

./gmap_location.module, line 95
GMap Location module is a module to add some gmap funcationality based on location.modules information.

Code

function gmap_location_menu() {
  $items['map/user'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'User locations',
    'access arguments' => array(
      'view user map',
    ),
    'page callback' => 'gmap_location_user_page',
  );
  $items['map/user/load'] = array(
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'view user map',
    ),
    'page callback' => 'gmap_location_user_point',
  );
  $items['map/node'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'Node locations',
    'access arguments' => array(
      'view node map',
    ),
    'page callback' => 'gmap_location_node_page',
  );
  $items['map/node/load/%node/%'] = array(
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'view node map',
    ),
    'page callback' => 'gmap_location_node_point',
    'page arguments' => array(
      3,
      4,
    ),
  );
  $items['admin/config/services/gmap_location'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'GMap Location',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gmap_location_admin_settings',
    ),
    'description' => 'Configure GMap Location settings.',
  );
  return $items;
}