Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | fix_hk_mo_1.x.patch | 3.89 KB | yookoala |
hk_mo_includes.zip | 2.27 KB | cookiesunshinex |
Comments
Comment #1
thierry_gd CreditAttribution: thierry_gd commentedTaken into account in 6.2.10 release
Comment #3
thinkact CreditAttribution: thinkact commentedThe 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.
Comment #4
cweagansThis needs to be done on the 7.x branch first, and then we can backport it.
Comment #5
yookoala CreditAttribution: yookoala commentedCreated a patch for 7.x-1.x branch. Fixed support for Hong Kong and Macau phone numbers.
Comment #6
yookoala CreditAttribution: yookoala commentedComment #7
yookoala CreditAttribution: yookoala commentedComment #8
yookoala CreditAttribution: yookoala commentedhello?