Module should invoke user_hooks when submitting roles?

james_w - June 29, 2008 - 20:13
Project:Role Delegation
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Forgive me - I'm trying to speak a language that I'm not fluent in here when it comes to coding.

I use a module called user badges that assigns "badges" to people based on their role. If I update a person's role using the role tab that the role delegation module provides, the badges are not updated to the user. If I update a person's role using the conventional method (the EDIT tab of their profile) then it seems to work fine.

The issue is discussed a bit more in detail here, though it pertains to user points module not role delegation, but from the sounds of things the issue is the same between both modules.
http://drupal.org/node/161822

The developer of the user badges module is saying that you should invoke user_hooks when a user's role is updated by the role delegation module. Apparently this will alert the other modules that the role has been updated (ie badges) so they can do their thing.

Hopefully you understand by now and maybe this will be a nice little one-line fix. Any assistance you can provide is much appreciated!

#1

David Lesieur - July 9, 2008 - 01:08

Agreed, invoking the user hook when submitting role changes would make sense.

#2

james_w - July 29, 2008 - 19:43

Thanks for acknowledging the issue... will there be an update on this in the future?

Thank you...

 
 

Drupal is a registered trademark of Dries Buytaert.