I think there should be a global setting in the module's options that would let the admin limit the phone countries available in the drop-down menu when creating a cck field. I was thinking perhaps a list of checkboxes? This would enhance the usability of the menu greatly. Imagine that this list is not complete and it will get larger and larger as new countries are supported.

As an added bonus, the site's enabled languages could be auto-detected and then have the corresponding phone countries' checkboxes enabled as defaults in this list. I mean, it is only natural for sites to want to handle phone numbers of countries depending on the site's available languages (with the exception of the generic 'International Phone Numbers per E.123', which I think should be enabled anyways).

Thanx in advance for considering this one.

Comments

stoob’s picture

Excellent point. I am not using this module simply because it makes the creation of new content types so annoying with all the menu options. We only need 3 countries in the list, there should be a way to reflect that. Uninstalled.

klonos’s picture

Title: Limit the available counties list in the drop-down » Limit the available countries list in the drop-down menu

...missed that 'r' in the 'count(r)ies' ;)

I honestly had started worried... ~6.000 people using this module and not a single one had the same issue(?).

wackadoodle’s picture

subscribe - concur with OP

bleen’s picture

Status: Active » Needs review
StatusFileSize
new5.92 KB

wow .. this has been making me nuts. So I fixed it :) patch attached. I didn't get so fancy with the auto-detecting, but this patch will allow you to choose the available phone formats.

bleen’s picture

StatusFileSize
new16.09 KB

keepin up with the latest version (this includes some white space and coding standard fixes too ... thats why the patch is so large

bleen’s picture

StatusFileSize
new5.95 KB

... and here it is without the whitespace changes so it can actually be sanely reviewed

klonos’s picture

I haven't used the module for a while. I'll see if I can test this though.

eric constantinides’s picture

SO NEEDED!!! Great job!

bleen’s picture

#8, is that a review of the patch in #6? or just an affirmation that this problem needs to be solved?