Closed (fixed)
Project:
Node import
Version:
6.x-1.0-rc4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2009 at 23:16 UTC
Updated:
28 Apr 2009 at 07:10 UTC
I use the cck phone module http://drupal.org/project/phone.
I tried to rewrite the email.inc to cs_phone.inc to import my phone numbers but it did not work.
is there anyone who already did it? or is able to help?
thx in advance.
Comments
Comment #1
Robrecht Jacques commentedIs there a reason why you called it cs_phone.inc? It probably didn't get included then. Files in supported/ are only included if a module with the same name is enabled. So call it phone.inc.
Could you attach your cs_phone.inc file so I can have a look at it?
Comment #2
HoKe commentedThe reason that I called it cs_phone.inc is that the I found in table content_node_field that the type for my field is cs_phone as email for some other field.
So I thought it will be the best to use it.
On your advice a changed it as mentioned below. and it works! thx.
It has just one small failure. That it shows unsoupported
file phone.inc
this file is no enough.
there must be added somethink like next code to node_import.inc row 211
and than to node_import.inc row 1141
but as I see, there is no valid_phone_number in .inc file like valid_email_number in includes/common.inc
the valid_phone_number is in phone.module and is tested on country code.
which is a little bit to much to me to find the right way. :(
so if any body knows how to do it, it would be great.
thx in advance
Comment #3
Robrecht Jacques commentedThanks for the work. I'll look into it tomorrow.
You will probably not need this node_import_check_phone() ... probably the form submission will do that testing. I'll look into it.
Also, it is probably "unsupported" because the "colname" is not "phone" but something else (probably simply "value").
Comment #4
Robrecht Jacques commentedDownload phone.inc from CVS and copy it into
supported/phone/phone.inc, creating a new directory.No changes needed to
node_import.incor other files.This will be included in the -rc5 release (ETA end of the week).
Please report if you find any issues with it, reopening this issue.