Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to make it so the "preview is required" option can be assigned to roles. To do so, there would be 2 basic steps:
1) Remove the "Preview post: optional/required" option from admin/settings/node.
2) Create a new access class named (say) 'optional post preview'.
It seems to me equally easy to configure and more powerfull. Thoughts?
Comment | File | Size | Author |
---|---|---|---|
#1 | optional_post_preview.patch | 1.58 KB | markus_petrux |
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedIt end up much easier than I thought. I hope you like it.
Please, see attached patch.
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedAm I alone? ...bee, bee, boo, boo, woaaaaa
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedis this reasonable or maybe food for a contrib module?
Comment #4
chx CreditAttribution: chx commenteduse hook_form_alter rather than a core patch.
Comment #5
markus_petrux CreditAttribution: markus_petrux commentedJust for reference here's this feature implemented as a contrib module:
http://drupal.org/node/51835
Comment #6
csc4 CreditAttribution: csc4 commentedThat page is not found - did this get implemented anywhere?
Comment #7
markus_petrux CreditAttribution: markus_petrux commentedhttp://www.phpmix.org/projects/drupal/4_7/bypass_forced_preview
Hope that helps