function geoip_menu in GeoIP API 6
Same name and namespace in other branches
- 5 geoip.module \geoip_menu()
- 7.2 geoip.module \geoip_menu()
- 7 geoip.module \geoip_menu()
Implementation of hook_menu().
File
- ./
geoip.module, line 21 - API for using the MaxMind GeoLite Country database.
Code
function geoip_menu() {
$items['admin/settings/geoip'] = array(
'title' => 'GeoIP',
'description' => 'Configure the path to the GeoIP database.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'geoip_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'geoip.admin.inc',
);
$items['geoip/json/country'] = array(
'page callback' => 'geoip_json_country',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}