[development] Hook_menu_alter doesn't work if menu item changed

Nancy Wichmann nan_wich at bellsouth.net
Sat Apr 25 18:48:43 UTC 2009

If I do anything to a menu item, including changing its position (weight)
with menu administration, then hook_menu_alter is unable to change its
title. This seems to be contrary to the way the hook should work;
essentially the hook is all but worthless in this case. Does anyone know why
this is this way?

Yes, I can update the menu_links table and change it there just fine, but
then I’m doing a query to change what a query should be about to do anyway.

Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. - Martin L. King, Jr.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090425/43cde277/attachment.htm>
-------------- next part --------------

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.12.4/2079 - Release Date: 4/24/2009 7:04 PM

More information about the development mailing list