Here are include files for Hong Kong and Macau.

They accept: (HK is 852 and Macau is 853)
852 9999 9999
+852 9999 9999
(852) 9999 9999
(+852) 9999 9999
Output is rewritten as (+852) 9999 9999

You will need to update the phone.module to add these files to the list of phone country field types.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thierry_gd’s picture

Status: Needs review » Fixed

Taken into account in 6.2.10 release

Status: Fixed » Closed (fixed)

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

thinkact’s picture

Version: 6.x-2.9 » 6.x-2.18
Status: Closed (fixed) » Reviewed & tested by the community

The include files (phone.hk.inc and phone.mo.inc) are missing in the latest version 6.x-2.18, and thus always fail in validation for Hong Kong numbers. After applying this patch, it works fine now. It will be great if these files can be added to the project.

cweagans’s picture

Version: 6.x-2.18 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Needs work

This needs to be done on the 7.x branch first, and then we can backport it.

yookoala’s picture

Issue summary: View changes
FileSize
3.89 KB

Created a patch for 7.x-1.x branch. Fixed support for Hong Kong and Macau phone numbers.

yookoala’s picture

Status: Needs work » Patch (to be ported)
yookoala’s picture

Status: Patch (to be ported) » Needs review
yookoala’s picture

hello?