You are here

function geoip_menu in GeoIP API 5

Same name and namespace in other branches
  1. 6 geoip.module \geoip_menu()
  2. 7.2 geoip.module \geoip_menu()
  3. 7 geoip.module \geoip_menu()

Implementation of hook_menu().

File

./geoip.module, line 11
API for using the MaxMind GeoLite Country database

Code

function geoip_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/geoip',
      'title' => t('GeoIP'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'geoip_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}