function geoip_country_values in GeoIP API 7
Same name and namespace in other branches
- 6 geoip.module \geoip_country_values()
Returns a list of country codes.
Returns codes as specified by http://www.maxmind.com/app/iso3166
Return value
array Associative array with the country code as key, and the country name as value.
Related topics
6 calls to geoip_country_values()
- geoip_admin_delete_mapping_submit in geoip_language/
geoip_language.admin.inc - Process a confirmed delete request of a mapping item.
- 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.
File
- ./
geoip.module, line 234 - 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;
}