[development] Should sess_read() call hook_user?

Moshe Weitzman weitzman at tejasa.com
Mon Feb 20 03:35:28 UTC 2006


Marc Poris wrote:
> Should sess_read() call hook_user (via user_load)?
> 
> This question came up due to a module developer's trouble maintaining
> user state across pages:
> 
>   http://drupal.org/node/49385
> 
> I traced through what was happening and came across sess_read() in
> session.inc which loads up the global $user with the most recent user
> for the session with some code that looks a lot like what's in
> user_load(), but it doesn't ever call hook_user -- is this by design?
> 
> Thanks,
> 
> Marc
> 
> 

the modules are not loaded during that time in the bootstrap. It is probably 
correct that the user object should get fully loaded by core later in the 
bootstrap.


More information about the development mailing list