[development] reducing module size

Bob Hutchinson hutchlists at midwales.com
Wed Feb 2 12:46:30 UTC 2011


I have a module whose functions are only used by logged-in users, it provides 
nothing to 'Anonymous' users except for a block.
I'm considering loading most of the functions only when $user->uid > 0 
probably in hook_init()

My question is, which functions would have to be loaded in order for things 
not to break, apart from the block functions (and any that it uses)?

Any insights would be most welcome before I try it out.

-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------


More information about the development mailing list