[development] Hook_menu_alter doesn't work if menu item changed
Earnie Boyd
earnie at users.sourceforge.net
Sun Apr 26 13:17:35 UTC 2009
Quoting Nancy Wichmann <nan_wich at bellsouth.net>:
> This is wacky! In 5.x to change the title of a content type, all it took was
> a variable_get and a simple bit of code in hook_menu and hook_node_info. But
> in 6.x I have to jump through all kinds of hoops changing the menu? I still
> haven't succeeded in getting it to update the description in the rendered
> menu. Is there an example somewhere? I see several, but I don't have the
> "mlid"; if I have to do a query to get that, I might as well go ahead and
> keep updating the tables directly.
>
The menu is cached and is only rebuilt in certain circumstances. This
doesn't provide for changing a static menu that is predefined unless
you rebuild the cache for all menu items. This is a costly effect.
--
Earnie
-- http://r-feed.com/ -- http://for-my-kids.com/
-- http://www.4offer.biz/ -- http://give-me-an-offer.com/
More information about the development
mailing list