Posted by yuriy.babenko on November 10, 2008 at 10:18pm
Hi all,
Just wanting to share a problem I encountered today (and spent several hours chasing down). Thanks to webchick and Heine for helping me out in IRC!
Here goes:
I had a simple module which implemented hook_user. I needed to do something when it was called with 'login' as the '$op' parameter. The problem is that my module's hook never got called with the login case.
What was happening is that the trigger module had an action to redirect the user (destination based on user role) upon login, which resulted in any hook_user calls after the trigger module getting ignored. Solution was to change the weight of the trigger module, making it the last one to be executed.
Careful with redirection!
Comments
Interesting... you might
Interesting...
you might want to file an issue on the trigger module suggesting that this information be added to its documentation :)