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

eugenmayer’s picture

The 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