[development] gotcha: menu wildcards, foreach() and MENU_SUGGESTED_ITEM

Karoly Negyesi karoly at negyesi.net
Thu Jul 17 04:02:08 UTC 2008

> In most cases, you DO want to remove the foreach() loop you had in D5. 

there, I fixed for you :)

> Within D6, it is ALMOST NEVER NEEDED TO HAVE a loop, recursively declaring several 
> well defined menu items, e.g. one item for each vocabulary. When you have 
> such a loop, DO use the wildcard loader. 

there, I fixed for you :)

You forgot about the distinction of router items and menu links. You will want to use a single router item and save several links with menu_link_save as you see fit.


Karoly Negyesi

More information about the development mailing list