You are here

function geoip_language_menu in GeoIP API 6

Same name and namespace in other branches
  1. 7 geoip_language/geoip_language.module \geoip_language_menu()

Implementation of hook_menu().

File

geoip_language/geoip_language.module, line 27
Language negotiation based on GeoIP detection.

Code

function geoip_language_menu() {
  $items = array();
  $items['admin/settings/language/geoip'] = array(
    'title' => 'GeoIP',
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
    'page callback' => 'geoip_language_settings_overview',
    'access arguments' => array(
      'administer languages',
    ),
    'file' => 'geoip_language.admin.inc',
  );
  $items['admin/settings/language/geoip/delete/%'] = array(
    'title' => 'Delete GeoIP mapping',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'geoip_admin_delete_mapping',
      5,
    ),
    'access arguments' => array(
      'administer languages',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'geoip_language.admin.inc',
  );
  return $items;
}