Mapper for phone field
scottrigby - January 31, 2009 - 16:42
| Project: | Feed Element Mapper |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
New mapper for Phone field (CCK)

#1
Patch attached.
One thing this doesn't do yet is validate the phone number...
Short of that, it seems to work well for me. It respects user configured settings on the phone field (adding country code, parenthesis around area code, & separators).
BTW, I noticed my patches don't add files to the appropriate module subfolders (like /mappers) when patched from the module root. So for now, to test, patch from the /mappers directory :p
#2
$phone_cck_types = array('fr_phone', 'it_phone', 'ca_phone', 'cr_phone', 'uk_phone', 'ru_phone', 'es_phone', 'au_phone', 'cs_phone', 'hu_phone');Could this be done without assuming a fixed set of supported languages?
#3
I'd rather have this in the phone field module and not in Feed Element Mapper. Will need work for new API (see api.php)
#4
Subscribing....