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

scottrigby - January 31, 2009 - 18:04
Status:active» needs review

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

AttachmentSize
feedapi_mapper_367205_phone.patch 2.39 KB

#2

alex_b - March 3, 2009 - 13:32
Status:needs review» needs work

$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

alex_b - May 19, 2009 - 13:21
Title:Phone field» Mapper for phone field

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

BenK - September 18, 2009 - 02:31

Subscribing....

 
 

Drupal is a registered trademark of Dries Buytaert.