Active
Project:
Content moderation
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2010 at 15:02 UTC
Updated:
19 Nov 2010 at 16:12 UTC
The function _content_moderation_set_live updates the node via SQL instead of updating direct a node object like:
$node = node_load($nid, NULL, true);
$node->status = 1;
$node->.....
.....
.....
node_save($node);
This behavior prevents the Rules Module from trigger some events such as "After updating existing content".
Comments
Comment #1
eugenmayer commentedThe node is not saved at all, just the live version is switched. So using the node_save api is not a go here, rather implement a rules trigger inline here