Closed (fixed)
Project:
Country codes API
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2010 at 11:30 UTC
Updated:
12 Apr 2011 at 10:41 UTC
Hi guys,
Any chance of some help? I'm have my country numcode from IP. So , 826 for the UK.
I'd like to return the country name using the API. I've had a look at the docs and it seems all the API call take parameters for ISO2 and 3 only?
I can return the complete country list using:
$countries = countries_api_get_list();
But am struggling to access the name using the numcode from the array?
Comments
Comment #1
VinceW commentedPerhaps this will work for you: #933266: Support for ISO 3166-1 numeric
But it would be cleaner to have a piece of code in the module like:
that way you could use:
Perhaps in a next release? :-)
Best,
VinceW
Comment #2
mrfelton commentedThanks,
These functions have been added to the D5 and D6 versions.
Comment #3
hixster commentedcool