I'm using Workflow-ng to call my custom modules based on actions from the user. One of the things I want to see happen is when the module is called I change the category of the node. I've tried looking into $node->category but that doesn't seem to be doing it. Does anyone know what the variable is that needs to get changed?

Comments

GrandVizier’s picture

after spending a few hours looking into this issue I've figured out the solution that works for me

$terms[] = taxonomy_get_term($term_id);
taxonomy_node_save($node_id, $terms);