Closed (fixed)
Project:
Drupal core
Version:
6.6
Component:
taxonomy.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2008 at 14:50 UTC
Updated:
2 Apr 2009 at 21:08 UTC
I am porting a module from Drupal5 to Drupal6. I try to create a node programmaticly, which should also save the taxonomy-terms(freetagging) of the node.
In Drupal5 I used this code.
$node = new StdClass();
.......
.......
.......
$node->taxonomy =
array (
'tags' =>
array (
1 => 'Beer,Becks',
)
);
node_save($node);
What would "$node->taxonomy" look like in Drupal6???
Thanks for your help!
Cheers around the world,
Ralph
Comments
Comment #1
binki commentedComment #2
ainigma32 commentedInstall the Devel module and use Macro to see what the array should like. Then use drupal_execute.
See here http://drupal.org/node/293663 for more info.
- Arie
Comment #4
okday commentedHi,
have you found a solution?
thanks