You are here

function ip_geoloc_menu in IP Geolocation Views & Maps 7

Implements hook_menu().

Defines new menu items.

File

./ip_geoloc.module, line 166
IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…

Code

function ip_geoloc_menu() {
  $items = array();

  // Put the administrative settings under System on the Configuration page.
  $items['admin/config/system/ip_geoloc'] = array(
    'title' => 'IP Geolocation Views & Maps',
    'description' => 'Configure map markers and how geolocation information is updated.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ip_geoloc_admin_configure',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ip_geoloc.admin.inc',
  );
  $items['js/ip_geoloc/current_location'] = array(
    'title' => 'Current location recipient',
    'page callback' => 'ip_geoloc_current_location_ajax_recipient',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['ip_geoloc/region_autocomplete'] = array(
    'title' => '"Set my location" block region autocomplete',
    'page callback' => 'ip_geoloc_region_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}