Ok, I found this once upon a time (I think), but now I can't. How/where do I turn off revisions for content types?

TIA...

Comments

hungdo’s picture

Edit the template.php file in your theme's folder and insert the following function:

function phptemplate_node_form($form)
{
$form['revision_information']['#access'] = FALSE;
return theme_node_form($form);
}
Save the file, and then visit the 'Modules' admin page in Drupal's Administration section, that will force Drupal to reload your recent change..

yelvington’s picture

Do not edit any files.

admin/content/types

Edit the content type

Open the "Workflow settings" fieldset

Uncheck "Create new revision"

extexan’s picture

@yelvington... thanks for that.

That's what I thought, but that field is UNchecked for my content type(s). Yet I have two nodes of a particular content type - one IS saving revisions, the other is not. This is in my sandbox, so it's entirely possible that it was on when I created one node, and off when I created the other. The question is, once a node is created with reversioning turned on, does it continue to add more revisions even after that feature is turned off?

As I said, this is in my sandbox, so it's no big deal. But I'm curious how to handle this situation if it occurred in a live site.

It's never too late to have a happy childhood. ;-)