How about adding continents to it? :)

There has already been some work done
http://drupal.org/node/161792

CommentFileSizeAuthor
#2 continents_api.patch6.33 KBwim leers
#2 continents_api.zip3.18 KBwim leers

Comments

mrfelton’s picture

Component: User interface » Code

I do think this would be a nice addition to the countries_api. However, if it is to be included, I think that

a) more information should be provided about the continents (at least a name to go with the two letter code)
b) it should be provided as a countries_api sub module, as this is not core to the api that the module aims to provide, and many people would not want the additional functionality and overhead.

wim leers’s picture

Title: Continents » Continents API
Version: 5.x-1.x-dev » 6.x-1.x-dev
Assigned: Unassigned » wim leers
Status: Active » Reviewed & tested by the community
StatusFileSize
new3.18 KB
new6.33 KB

I needed this, so I just wrote it. Based my code on countries_api and regions_api of course.

Since CVS is unable to create patches for new directories AFAIK, I'm just attaching a patch rolled through SVN. Should work just as well. Will be using this in production at http://driverpacks.net in a couple of hours.
Also attaching a .zip just in case.

wim leers’s picture

Status: Reviewed & tested by the community » Needs review

Oops, accidentally picked the wrong status. Sorry about that.

wim leers’s picture

It's been in use for almost a month now and no issues so far — it is an extremely simple module after all.

Any chance this gets committed some time soon?

mrfelton’s picture

I'll make this happen over the weekend. Thanks for your contribution.

mrfelton’s picture

Status: Needs review » Fixed

commited to cvs and backported to the 5.x branch. Thanks

Status: Fixed » Closed (fixed)

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

asb’s picture

Hi,

are there any user modules (like 'cck_country') which use the Continents API?

Thanks, -asb