You are here

function location_menu in Location 7.4

Same name and namespace in other branches
  1. 5.3 location.module \location_menu()
  2. 5 location.module \location_menu()
  3. 6.3 location.module \location_menu()
  4. 7.5 location.module \location_menu()
  5. 7.3 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['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',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/content/location/general'] = array(
    'title' => 'General settings',
    'description' => 'TEST',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );

  /*  $items['admin/config/content/location/main'] = array(
      'title' => 'Global settings',
      'type' => MENU_DEFAULT_LOCAL_TASK,
    );*/
  $items['admin/config/content/location/bundle'] = array(
    'title' => 'Bundles',
    'description' => 'Configure bundles for working with locations.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'location_overview_bundles',
    ),
    'file' => 'location.admin.inc',
    'access arguments' => array(
      'admininster site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/content/location/bundle/%location_bundle'] = array(
    'title' => 'Bundle overview',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'location_unimplemented_form',
      4,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/content/location/bundle/%location_bundle/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/content/location/bundle/%location_bundle/delete'] = array(
    'title' => 'Bundle overview',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'location_unimplemented_form',
      4,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/content/location/maplinking'] = array(
    'title' => 'Map links',
    'description' => 'Configure generation of links to external mapping sites.',
    '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',
    'description' => 'Configure how Location geocodes addresses.',
    '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(
      4,
      5,
    ),
    '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,
  );

  /////////////////// DRUPAL 7

  /*
  $items['admin/config/content/location/bundles'] = array(
    'title' => 'Locations',
    '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,
  );

  $items['admin/content/locations/bundle'] = array(
    'title' => 'Location bundles',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('location_util_form'), // @@@
    'access arguments' => array('administer site configuration'),
    'file' => 'location.admin.inc',
    'type' => MENU_CALLBACK,
  );
  */
  return $items;
}