[development] gotcha: menu wildcards, foreach() and MENU_SUGGESTED_ITEM
Peter Wolanin
pwolanin at gmail.com
Thu Jul 17 15:38:12 UTC 2008
Menu module is one example in core where several links are created and
added to the navigation menu. For some things like node types, we
probably could have done the same (rather than using a foreach) but we
had also hit the "don't fix it if it works" phase of the core cycle.
-Peter
On Thu, Jul 17, 2008 at 12:28 AM, augustin (beginner)
<drupal.beginner at wechange.org> wrote:
> On Thursday 17 July 2008 12:02:08 Karoly Negyesi wrote:
>> 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.
>
> Ah, yes!
> Not knowing too much about the internals, I was looking at it from the
> perspective of a module developer and what was possible using hook_menu()
> only.
>
> Thank you very much for your feedback.
>
> I have updated the issue with a copy of your comment:
> http://drupal.org/node/283198
>
> And since this problem is not particularly obvious, I have updated my handbook
> edits to correspond to the sanctioned solution:
> http://drupal.org/node/103114
> http://drupal.org/node/109153
>
>
>
> Thanks again to Larry and Karoly for their comments.
>
>
> Blessings,
>
> Augustin.
>
> P.S. to Larry: I guess I *still* need my beginner handle for a while longer,
> after all... ;)
>
>
More information about the development
mailing list