Closed (won't fix)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2013 at 16:40 UTC
Updated:
25 Jun 2018 at 12:51 UTC
Jump to comment: Most recent
Comments
Comment #1
nicolas bouteille commentedHow come an issue can just stay active for more than a year with no comment?
I am just starting to use Beans in order to make it simpler for end-users to deal with blocks and one of the first things I noticed is that revisioning can't be disabled and thus adds complexity in the interface!
I will be using the quick fix below for now but I definitely encourage you to go through with this feature request.
http://www.sagetree.com/sage-advice/zakiya-khabir/quick-fix-disable-bean...
Comment #2
pfrenssen@Nicolas, patches are welcome.
Comment #3
damienmckennaClosed a duplicate: #1961070: Configurable defaults per block type for revision settings?
Comment #4
joelpittetStarted to give this a go but the patch was getting a bit too big and didn't feel like it was getting very far.
Quick fix caught my attention:
http://www.sagetree.com/blog/2013/05/quick-fix-disable-bean-revisions
This just hides it everywhere, which for the site I'm working on, works great.
Comment #5
rcodina#4 works for me. Thanks!
Comment #6
jwilson3#4 works, but it doesn't get rid of the "revisions" tab (next to view | edit tabs on /block/X/view page.
I combined #4 with the following for one wholesome solution:
If you need something not so drastic, such that certain roles can access the hidden tabs see this: https://www.drupal.org/node/483324#comment-2257606
Comment #7
O U T L A W commentedI'm trying to reproduce the node revision behaviour to the beans. The revision form is always accessible, and a new revision is created by default on bean creation. If you compile the log field without adding a new revision, the current revision log is updated. The field to set the current revision is never shown to users, and the new revisions are always set as current revision. And I've added the revision form and view mode form to a vertical tab.
This not allow users to enable/disable revision per bean type, but it sets to false the revision for all beans.
Sorry for my english. :)
Node revisions have a #states that refers to textarea[name="log"], but I'm not sure if it is required or not... To my test on Beans it seems to make no difference.
I'm pretty new to Drupal, so please check my code. :)
Comment #8
damienmckennaI don't think there's any benefit to this, if you want to disable revisions you can use hook_form_alter to disable the field on the form (#access => FALSE).