You are here

function geoip_country_values in GeoIP API 6

Same name and namespace in other branches
  1. 7 geoip.module \geoip_country_values()

Return a list of country codes as specified by http://www.maxmind.com/app/iso3166

Related topics

6 calls to geoip_country_values()
geoip_admin_delete_mapping_submit in geoip_language/geoip_language.admin.inc
geoip_language_mapping_create in geoip_language/geoip_language.module
API function to create a new mapping.
geoip_language_mapping_delete in geoip_language/geoip_language.module
API function to delete a mapping.
geoip_language_settings_form in geoip_language/geoip_language.admin.inc
FAPI callback for creating a new country-language mapping.
geoip_language_settings_form_submit in geoip_language/geoip_language.admin.inc
FAPI submit handler.

... See full list

File

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

Code

function geoip_country_values() {
  static $countries = NULL;
  if (!isset($countries)) {
    module_load_include('inc', 'geoip', 'geoip.values');
    $countries = _geoip_country_values();
  }
  return $countries;
}