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.
We've got some strange requirements that dictate using a "super admin" role with adminrole and have been trying to activate it as part of an install profile. The way the hook_install() code is written it's difficult to avoid having it create the "administrator" role and grant it all the permissions. The attached patch is an attempt to avoid this. Now our install profile can set the variable before the module is installed and use the correct role.
Comment | File | Size | Author |
---|---|---|---|
#2 | adminrole_1201900.patch | 1.72 KB | drewish |
#1 | adminrole_1201900.patch | 3.83 KB | drewish |
adminrole_install.patch | 1.72 KB | drewish | |
Comments
Comment #1
drewish CreditAttribution: drewish commentedThat last patch was an old version with a typo.
Comment #2
drewish CreditAttribution: drewish commenteduh... hall of mirrors
Comment #3
NancyDru