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 realize this module is intended to be only an API, but one easy way to illustrate how it works would be to include an example. This code creates a fieldset above the User permissions page that allows you to grant all or revoke all permissions by module and role. It's a pretty simple addition, a very useful feature, and a nice illustration.
I have a bit of css that I use to float these boxes next to each other, which you can use or not.
Also, this patch adds in the 'core = 6.x' line in the .info file which is necessary to even be able to enable it.
Comment | File | Size | Author |
---|---|---|---|
#6 | permissions_reset.zip | 1.54 KB | KarenS |
#1 | permission_reset.jpg | 56.06 KB | KarenS |
permissions.patch | 3.13 KB | KarenS |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedAnd a screenshot.
Comment #2
ebeyrent CreditAttribution: ebeyrent commentedAs you said, this is merely an API, provided specifically to help people avoid the access control page. However, I agree with you there there is a need for this.
Maybe the best thing to do would be to add a contrib module called Permissions UI; something to layer on top of the existing access control page. What do you think?
Comment #3
KarenS CreditAttribution: KarenS commentedyep, makes sense to me. Are willing to add it as an extra module within Permissions API? I'm trying to avoid creating and maintaining a new project for such a small thing.
Also, not the missing line in the .info file. I should do a separate patch for that, but didn't have time.
Comment #4
ebeyrent CreditAttribution: ebeyrent commentedSounds like a plan. I'll add it as a contrib module within Permissions API.
Permissions UI? Permissions Extra?
Comment #5
ebeyrent CreditAttribution: ebeyrent commentedWhere's the permissions_api.css?
Comment #6
KarenS CreditAttribution: KarenS commentedOK, here is a whole package, called Permissions Reset (since that's all it does).
Comment #7
ebeyrent CreditAttribution: ebeyrent commentedI've committed to cvs, but haven't tried it out yet...
Comment #8
KarenS CreditAttribution: KarenS commentedThat was fast :)
Comment #9
ebeyrent CreditAttribution: ebeyrent commented