[development] question - hook execution order

Larry Garfield larry at garfieldtech.com
Sat Jul 21 16:49:16 UTC 2007

The menu callback is the first thing to be called.  The block are generated 
during the theming of the page itself, which happens after the content (menu 
callback) has been built.

On Saturday 21 July 2007, David McNab wrote:
> Hi,
> If a module is generating both page content and block content, and thus
> defines both a page content callback function and a _block hook
> function, then which will get called first?
> Does the _block() hook get called first, or the page content callback as
> defined in _menu()?
> Thanks
> David

Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 

More information about the development mailing list