You are here

function getlocations_mapquest_menu in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_menu()

Implements hook_menu().

File

modules/getlocations_mapquest/getlocations_mapquest.module, line 31
getlocations_mapquest.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_mapquest_menu() {
  $items = array();
  $items[GETLOCATIONS_ADMIN_PATH . '/mapquest'] = array(
    'title' => 'Mapquest',
    'description' => 'Configure Getlocations Mapquest',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'getlocations_mapquest_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 6,
  );

  // getlocations/[entity_type]/$nid    # show all location on one entity_type
  $items['getlocations_mapquest/%getlocations_entity_type/%getlocations_id'] = array(
    'title' => 'Get locations',
    'access callback' => 'getlocations_access_location',
    'page callback' => 'getlocations_mapquest_entity_type_map',
    'page arguments' => array(
      1,
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}