It depends on which Drupal you are using, D6 or D7. Read the documentation about D7, where you can split your .module into multiple files.
In D6, in general, all hook implementations must be presented in your .module file. However, except your module is too big, this micro optimization has only negligeable profit. -- Hai-Nam Nguyen (aka jcisio) http://jcisio.com On Wed, Feb 2, 2011 at 1:46 PM, Bob Hutchinson <hutchli...@midwales.com> wrote: > 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 > ----------------- >