Attached is patch which adds the alternative widget as a small separate module "phone_code". The widget just works with the regular phone string and has configurable phone codes, e.g. I'm using this to only allow some mobile phone numbers where the options of possible phone codes are limited.

CommentFileSizeAuthor
#1 phoone_code_widget.patch6.99 KBfago
phoone_code_widget.patch7.01 KBfago
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fago’s picture

FileSize
6.99 KB

fixed a validation problem when #access is FALSE for the widget.

fago’s picture

The widget seems to work well for me. Any feedback on whether something like this is a desired, or should it better be moved into a separate project?