[development] Should sess_read() call hook_user?

Marc Poris marc at funnymonkey.com
Sun Feb 19 19:38:04 UTC 2006


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




More information about the development mailing list