[development] Question on hook_menu in cvs.

Metzler, David metzlerd at evergreen.edu
Wed Sep 20 19:57:13 UTC 2006


Got it, thanks.  

I mistakenly assumed that sections in the "maycache" section would be
cached for the session.  Turned out my own logic around forcing the menu
to display in admin/build/menu section had me fooled into believing
these were cached beyond a page load. 

Dave

-----Original Message-----
From: development-bounces at drupal.org
[mailto:development-bounces at drupal.org] On Behalf Of Gerhard
Killesreiter
Sent: Wednesday, September 20, 2006 12:23 PM
To: development at drupal.org
Subject: Re: [development] Question on hook_menu in cvs.

Metzler, David wrote:
> So that means that you simply cannot create or reposition, or make 
> optional any menus that have logic in them? (which therefore cannot be
> cached?)

The conclusion is invalid. :p

> What I'm ultimately reaching for is to be able to have a menu item 
> only appear if the user is not logged in, and give the site 
> administrator the ability to attach this menu to primary links, etc.
> 
> Am I thinking about this problem wrong? Is there another way to 
> achieve the same functionality?

Yes, there is: Look at the "user" path and how it is handled.

Cheers,
	Gerhard


More information about the development mailing list