I've created a module to edit node content automatically. And the site is using the "Workbench Moderation" module.
But I can't figure out how to get the node to duplicate into a new revision (in "draft" status). My edited content always appears in the "published" version of the node.
Does anyone know what the API calls should be to make this happen?
$node->revision = 1;
that is the magic I was looking for. – Goodall