hook_user not being called for 'login' operation

Posted by Allain Lalonde on Stack Overflow See other posts from Stack Overflow or by Allain Lalonde
Published on 2010-04-17T01:32:49Z Indexed on 2010/04/17 1:43 UTC
Read the original article Hit count: 329

Filed under:
|

I've read in the drupal documentation that hook_user should be invoked for the login operation. To test this I've added a call to drupal_set_message at the top of my modules hook implementation and the only message I'm receiving is a call with 'load' as the $op.

I've confirmed that drupal_set_message can be called multiple times and it doesn't erase the previous message, so I'm confident that hook_user is only being invoked the one time.

Any good reasons for why hook_user isn't being invoked with 'login' as an operation when I'm logging in?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about hook