I read in the drupal documentation that hook_user should be called for a login operation. To test this, I added a call drupal_set_messageat the top of my hook implementation, and the only message I get is a call with 'load' like $ op.
I have confirmed that drupal_set_message can be called multiple times and does not delete the previous message, so I am sure that hook_user is called only once.
Any good reasons why hook_user does not start with 'login' as the login operation?
Drupal version is 6, and my module is called "favequest_favorites". Its implementation of hook_user (for testing purposes):
function favequest_favorites_user($op, &$edit, &$user, $caterogy=NULL) {
drupal_set_message($op);
}
source
share