Comments

clemens.tolboom’s picture

Title: you probably hit on this taxonomy problem to » you probably hit on this taxonomy problem too
clemens.tolboom’s picture

For free tagging this works assuming free tagging is enabled for the first vocabulary

$node_type = 'story';
$vocs = taxonomy_get_vocabularies( $node_type);
$voc = array_shift( $vocs);

$edit = node_factory_create_node( $node_type);

// assuming free tagging is enabled for first vocabulary
$edit['taxonomy']['tags'][$voc->vid]= 'a,b,c';

$nid = node_factory_save_node($edit);

See also the tests directory

clemens.tolboom’s picture

Assigned: Unassigned » clemens.tolboom
Status: Active » Fixed

This works too

$edit['taxonomy'][] = 9;

So the documentation must be updated accordingly.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.