[support] Dynamically display menu items?
toon severijns
toon.severijns at gmail.com
Tue Jun 7 22:06:55 UTC 2011
Thanks Nancy,
I'll have a look at that.
Best,
Toon
On Tue, Jun 7, 2011 at 10:46 PM, Ms. Nancy Wichmann
<nan_wich at bellsouth.net>wrote:
> Gee, I'd go low tech and use a custom "access callback" function. "My
> project" would, for example use the TRUE return, and "Available projects"
> would negate the return value. Try to keep the logic simple because it may
> be invoked as often as every page request. If it is more complex, you could
> add a flag to $user->data in the project assignment code.
>
> *Nancy*
>
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L.
> King, Jr.
>
> ------------------------------
> *From:* toon severijns
>
> Let's i want to display or not display a menu item depending on some
> property of the logged in user. E.g. when my user has selected a project
> (i.e. a reference to the project can be found through the user) i want to
> display a menu item "my project", if not i want to display a different menu
> item "available projects". How do i do this? Context? Rules? Menu hooks?
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110608/f5e1fff6/attachment.html
More information about the support
mailing list