[development] gotcha: menu wildcards, foreach() and MENU_SUGGESTED_ITEM
augustin (beginner)
drupal.beginner at wechange.org
Wed Jul 16 06:15:05 UTC 2008
Hi again,
On the issue, crell write:
" A foreach loop inside a D6 menu handler is 99% of the time the WRONG way to
do it."
http://drupal.org/node/283198
Have I stumbled upon the 1% of cases where it's the right thing to do?
If you agree with crell and if I am wrong, I certainly would like to know it,
and I'll revert the documentation changes I made.
What is the proper way to have MENU_SUGGESTED_ITEM with wildcards and without
a loop?
See the issue for code examples.
Thanks,
Augustin.
More information about the development
mailing list