I can always get that from the geoip.inc file but it'd be sweet if this module had a geoip_get_country_list() that was a big array like:

array(
  'AF' => 'Afghanistan',
  'AL' => 'Albania',
  // etc.
)

Comments

webchick’s picture

Status: Active » Closed (won't fix)

Actually, in looking at how Ad GeoIP does this, I'm not sure it makes sense for this module. Best to keep to one thing and do it well.

rickvug’s picture

Status: Closed (won't fix) » Active

I could see this being helpful.

roball’s picture

If you have the Location module installed, it provides the location_country_name() function to resolve the 2-digit-country code into the country name like this:

$country_name = location_country_name($country_code);

The Country codes API module also offers a way for this resolution.

klonos’s picture

...subscribing

drewish’s picture

Status: Active » Fixed

Do you mean geoip_country_values()? It returns the array of country code => name mappings defined in geoip.values.inc.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.