Closed (fixed)
Project:
Workbench Moderation Buttons
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2013 at 16:34 UTC
Updated:
23 Oct 2014 at 17:54 UTC
Jump to comment: Most recent
I am working on a very large site that only uses Workbench Moderation on some of the content types. I don't want workbench_moderation_buttons to override the form submit buttons unless the content type is using moderation. Here is a patch with a very simple check that revisioning == TRUE to prevent non moderated content types from being overridden.
| Comment | File | Size | Author |
|---|---|---|---|
| workbench_moderation_buttons-Check-revisioning-2088327-1.patch | 2.37 KB | cecrs |
Comments
Comment #1
mariacha1 commentedComment #2
askibinski commentedI did something similar, but I wanted to keep the nice draft/publish button states, even when there is no workbench moderation used.
Comment #3
theodorosploumisActually, code from #2 allows users to Publish content event if they don't have Moderation permissions to do so.
That's because $form['workbench_moderation_state_current'] is null before content creation!
Comment #4
kepford commentedI believe this issue is resolved in https://www.drupal.org/node/2327553
Comment #5
saltednutMoved to full project.
Comment #6
saltednutFixed per #2327553: Resolve Coding standard issues