Exporting nodes tagged by taxonomy terms was giving me trouble. Turns out that the taxonomy array generated by node_load() does not work well with node_save(). This patch rewrites the $node->taxonomy array in an export friendly way.
| Comment | File | Size | Author |
|---|---|---|---|
| export.pages_.inc_.patch | 737 bytes | James Andres |
Comments
Comment #1
danielb commentedDo you know if this would be the same in drupal 5 at all?
Comment #2
James Andres commentedDidn't test in 5.x. Off the top of my head I'd say yes because the relevant, bottom, part of
taxonomy_node_save()is the same in 5.x and 6.x.http://api.drupal.org/api/function/taxonomy_node_save/5 versus http://api.drupal.org/api/function/taxonomy_node_save/6
Comment #3
danielb commentedI've added this to the D5 because I was working on it, I'll chuck it into 6 soon.
Comment #4
danielb commented