I'd like to prevent revisions being created everytime a node is updated, rather only created a new revision when a user creates a new draft and all subsequent updates would just update that revision.

The reason for this is that a user may sometimes edit a node up to 20 times before it's ready to be published and this is somewhat detracting from the usefulness of revisions as it's hard to pinpoint the revision at which the content was in good condition.

I understand fundamentally that this is not how Workbench Moderation works and so I was wondering if it could be acheived using the Drupal node API plus using some functions from Workbench moderation.

If you could let me know whether or not you think this might be possible and roughly how much effort it might entail that would be a great help.

Thanks for the great module by the way. It really is a shining example of a well built module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mauricio.tollin’s picture

This is a good thing that I would like to see.

plopesc’s picture

Status: Active » Needs review
FileSize
5.59 KB

Hello. I needed this feature and here is the patch I created to only provide one draft per node. This avoid flooding the database with undesired revisions.

This patch adds a new set of radios in the node edit form where the user can select the deafult Workbench moderation behavior or the only one draft per node approach.

Patch has been done against 7.x-1.3 version.

Regards

Status: Needs review » Needs work

The last submitted patch, 2: one_revision-2313339-2.patch, failed testing.

DamienMcKenna’s picture

Version: 7.x-1.3 » 7.x-1.x-dev

This also needs to be rerolled against v7.x-1.x-dev.

sime’s picture

Sorry, this patch is against the latest release so may fail against head, but I'd say it's a step forward.