function location_menu in Location 7.3
Same name and namespace in other branches
- 5.3 location.module \location_menu()
- 5 location.module \location_menu()
- 6.3 location.module \location_menu()
- 7.5 location.module \location_menu()
- 7.4 location.module \location_menu()
Implements hook_menu().
File
- ./
location.module, line 27 - Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…
Code
function location_menu() {
$items = array();
$items['location/autocomplete'] = array(
'access arguments' => array(
'access content',
),
'page callback' => '_location_autocomplete',
'type' => MENU_CALLBACK,
);
$items['location/city/autocomplete'] = array(
'access arguments' => array(
'access content',
),
'page callback' => '_location_city_autocomplete',
'type' => MENU_CALLBACK,
);
$items['admin/config/content/location'] = array(
'title' => 'Location',
'description' => 'Settings for Location module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'location_admin_settings',
),
'file' => 'location.admin.inc',
'access arguments' => array(
'administer site configuration',
),
);
$items['admin/config/content/location/main'] = array(
'title' => 'Main settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/content/location/maplinking'] = array(
'title' => 'Map links',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'location_map_link_options_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'location.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/content/location/geocoding'] = array(
'title' => 'Geocoding options',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'location_geocoding_options_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'location.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/config/content/location/geocoding/%/%'] = array(
'page callback' => 'location_geocoding_parameters_page',
'page arguments' => array(
5,
6,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
$items['admin/config/content/location/util'] = array(
'title' => 'Location utilities',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'location_util_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'location.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
return $items;
}