You are here

function geoip_countries_list in GeoIP API 7.2

Returns the list of country codes.

Return value

array Associative array key is the country code, value is the country name.

Related topics

1 string reference to 'geoip_countries_list'
geoip_rules_condition_info in ./geoip.rules.inc
Implements hook_rules_action_info().

File

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

Code

function geoip_countries_list() {
  include_once DRUPAL_ROOT . '/includes/locale.inc';
  return country_get_list();
}