You are here

function geoip_init in GeoIP API 6

Implementation of hook_init().

File

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

Code

function geoip_init() {

  // Disable caching on JSON request.
  if ($_GET['q'] == 'geoip/json/country') {
    $GLOBALS['conf']['cache'] = CACHE_DISABLED;
  }
}