[support] Insert into custom content type module

Néstor rotsen at gmail.com
Sat Dec 19 22:52:40 UTC 2009


Can you post the fix?

Thanks,

:-)

On Sat, Dec 19, 2009 at 6:22 AM, Matt Friedman <matt.friedman at gmail.com>wrote:

> Nevermind, I've fixed the issue. Thanks.
>
> 2009/12/18 Matt Friedman <matt.friedman at gmail.com>
>
>> Hi,
>>
>> I have created a custom content type module called tpr_article.
>>
>> I also have a script that pulls articles from a legacy database and is
>> supposed add the legacy articles into the tpr_article content type.
>>
>> I have set $node->type='tpr_article' and tried to save the node using
>> node_save() in order to save the $node in the right place. The content ends
>> up in the node tables instead of my new tpr_article content type table.
>>
>> How do I, in code, insert the legacy articles using my new content type
>> module tpr_article?
>>
>> If you need any more info please let me know.
>>
>> Thanks,
>> Matt
>>
>>
>>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20091219/91cc28a7/attachment.html 


More information about the support mailing list