2011-07-27, 03:18:26
Some of the issues may be related to when the events_preload() fires. In the root directory (i.e. end user) it is before the HTML is output (and also before the time zone is set), using the hook index-pretemplate. In the admin control panel, it is after the main <head> content is loaded. This is because the admin panel lacks an index-pretemplate hook, so the header hook had to be used - this hook is only in the admin control panel, but this is desirable since it loads CSS and JavaScript only relevant to administrators.
-- Sam