You are here

function getlocations_gps_menu in Get Locations 7

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

Implements hook_menu().

File

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

Code

function getlocations_gps_menu() {
  $items = array();
  $items[GETLOCATIONS_ADMIN_PATH . '/gps'] = array(
    'title' => 'Gps',
    'description' => 'Configure Getlocations gps',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'getlocations_gps_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 14,
  );

  // ajax callbacks
  $items['getlocations_gps/latlon'] = array(
    'page callback' => 'getlocations_gps_callback',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}