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.
improvements:
- removed code duplication
- added "Delegate roles" action
Comment | File | Size | Author |
---|---|---|---|
D7_port_role_delegation.patch | 14.41 KB | Pasqualle | |
Comments
Comment #1
Pasqualle[edit: download link removed]
Comment #2
David Lesieur CreditAttribution: David Lesieur commentedExcellent patch committed!
The new actions are a welcome addition.
Comment #4
sunComing from http://www.bywombats.com/blog/01-23-2010/delegating-role-delegation#comm...
Sorry, but no :)
Looking at the current CVS HEAD... http://drupalcode.org/viewvc/drupal/contributions/modules/role_delegatio...
...the code is still using the workaround of a separate page.
In #118345: Revamp hook_user_form/_register/_validate/_submit/_insert/_update, I made sure that modules like Role Delegation can easily alter the user account form and apply the changes directly, instead of using a separate page.
Comment #5
Pasqualle@sun: the user account form is altered and changes applied directly (in hook_user_presave), the separate page is used only when the user do not have the 'access user profiles' permission..
Comment #6
David Lesieur CreditAttribution: David Lesieur commentedThe intended behavior works as described by Pasqualle in #5.