Revisions
cmcintosh - November 19, 2008 - 21:48
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.

I think there is no module
I think there is no module yet, but its easy to force
just use
<?phpfunction 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
You don't need code to
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
Thanks
That sounds like the best way to do is WorldFallz.
Chris McIntosh
ChrisMcIntoshDesigns.com
chris@chrismcintoshdesigns.com