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

Earl Miles merlin at logrus.com
Mon Apr 27 16:36:13 UTC 2009

Chris Johnson wrote:
> I have to agree with Nancy.  Re-weighting a menu item does not qualify
> as customized, IMO.  Otherwise, I agree it works as designed.

The thing is, the system can only tell that there's an entry in the 
table, not what part of the item has been modified. I ran into this in 
some completely unrelated piece of code, where I ended up storing 
weights separately so that moving an item up or down didn't constitute 
modifying it, and it is a lot of extra code just to do that.

More information about the development mailing list