20 Feb
2006
20 Feb
'06
4:35 a.m.
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:
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.