You are here

function geocoder_menu in Geocoder 7

Implements hook_menu().

File

./geocoder.module, line 106

Code

function geocoder_menu() {

  // Admin settings for the site.
  $items['admin/config/content/geocoder'] = array(
    'title' => 'Geocoder settings',
    'description' => 'Configuration for API keys and other global settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'geocoder_admin_settings',
    ),
    'file' => 'geocoder.admin.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
    // Optional.
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['geocoder/service/%'] = array(
    'title' => 'AJAX / AJAJ geocoding service',
    'description' => 'Provides basic callback for geocoding using JavaScript',
    'page callback' => 'geocoder_service_callback',
    'page arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      arg(2),
    ),
    'access callback' => 'geocoder_service_check_perms',
  );
  return $items;
}