I would like to know if there is a way either module or out-of-box drupal. To enforce revision creation everytime a piece of content is changed. Also, is there a method of removing revisions that are older than X number of days. Thanks for any response or links.

Comments

dawehner’s picture

I think there is no module yet, but its easy to force

just use

<?php
function hook_nodeapi(...) {
  switch ($op) {
    case 'submit':
      $node->revision = TRUE;
  }
}?>

Or use the settings in the nodetype settings
----------------------------------------
German IRC-Channel: irc.freenode.net #drupal.de ... Jabber-me: dwehner@im.calug.de

WorldFallz’s picture

You don't need code to enforce revisions-- simply check the "create new revision" option in the 'workflow settings' fieldset for the content type and don't give editors the 'administer nodes' permission.

For trimming revisions see the http://drupal.org/project/revision_deletion module.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

cmcintosh’s picture

That sounds like the best way to do is WorldFallz.

Chris McIntosh
ChrisMcIntoshDesigns.com
chris@chrismcintoshdesigns.com

Chris McIntosh
(812) 250-4103 | cmcintosh@wembassy.com