function geoip_language_menu in GeoIP API 7
Same name and namespace in other branches
- 6 geoip_language/geoip_language.module \geoip_language_menu()
Implements hook_menu().
Return value
array
File
- geoip_language/
geoip_language.module, line 33 - 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;
}