[development] The new menu system

Larry Garfield larry at garfieldtech.com
Wed Sep 27 02:24:02 UTC 2006

On Tuesday 26 September 2006 09:17, Moshe Weitzman wrote:

> this new system gets rid of the $may_cache switch in hook_menu(). hook_menu
> is now called only upon module enable/disable and admin/menu. this is
> outstanding. however, we no longer have a place to stick our
> drupal_add_css() and drupal_add_js() type calls.

hook_menu() was a bad place for them in the first place anyway.  They should 
be called selectively when needed so as to not cause needless calls to CSS 
files that don't get used.  We don't need another hook for that, we need to 
just move the drupal_add_css() calls.  See:


I am willing to take care of moving the calls for other core modules if 
there's buy-in to actually commit them, but I don't want to create still more 
issues that will get left to rot until the second issue above is committed.

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