function ip2country_menu in IP-based Determination of a Visitor's Country 6
Same name and namespace in other branches
- 7 ip2country.module \ip2country_menu()
Implements hook_menu().
File
- ./
ip2country.module, line 91 - Determination of user's Country based on IP.
Code
function ip2country_menu() {
$items = array();
$items['admin/settings/ip2country'] = array(
'title' => 'IP to Country settings',
'description' => 'Settings for determining user location from IP address.',
'access arguments' => array(
'administer ip2country',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ip2country_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'ip2country.admin.inc',
);
$items['admin/settings/ip2country/update'] = array(
'title' => 'Update database',
'access arguments' => array(
'administer ip2country',
),
'page callback' => '_ip2country_update',
'type' => MENU_CALLBACK,
'file' => 'ip2country.admin.inc',
);
$items['admin/settings/ip2country/lookup'] = array(
'title' => 'Lookup IP address in database',
'access arguments' => array(
'administer ip2country',
),
'page callback' => '_ip2country_lookup',
'type' => MENU_CALLBACK,
'file' => 'ip2country.admin.inc',
);
return $items;
}