Great module idea; thanks.

It'd be handy to have the ability to configure a default enabled/disabled state for block revisions, similar to what's provided at the content type level for nodes. It would be all too easy to forget to check the box on the block edit page and fail to keep the previous revision.

Comments

mr.baileys’s picture

I like the idea of being able to provide a default for the "create new revision" checkbox (also playing with the idea of making the revision log field required when "create a new revision" is checked).

However, I'm not sure how where to best implement it. I'm trying to keep the module light-weight, and adding a separate configuration page for just one checkbox default seems overkill...

In the meantime I did set up a variable (block_revisions_revision_default) which you can set to toggle this checkbox default. Including:

// Default value for the "Create new revision" checkbox when editing custom blocks.
$conf['block_revisions_revision_default'] = TRUE; 

in your settings.php file will make the checkbox selected by default.

jerry’s picture

Good deal; thanks!

Rob T’s picture

Perfect.