You are here

function ip2country_test_menu in IP-based Determination of a Visitor's Country 7

Implements hook_menu().

File

tests/ip2country_test.module, line 36
Determination of user's Country based on IP.

Code

function ip2country_test_menu() {
  $items = array();
  $items['admin/config/location/ip2country'] = array(
    'title' => 'IP to Country settings',
    'description' => 'Configure the IP/Country settings',
    '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/config/location/ip2country/update'] = array(
    'title' => 'Update database',
    'access arguments' => array(
      'administer ip2country',
    ),
    'page callback' => '_ip2country_update',
    'type' => MENU_CALLBACK,
    'file' => 'ip2country.admin.inc',
  );
  $items['admin/config/location/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;
}