[thelist] php help with drupal menu

Tom Dell'Aringa pixelmech at gmail.com
Fri Mar 23 12:12:51 CDT 2007


On 3/22/07, Matt Warden <mwarden at gmail.com> wrote:
>
> On 3/22/07, Tom Dell'Aringa <pixelmech at gmail.com> wrote:
> > Okay, I found the include where the l() function is referred to. I read
> it,
> > can't say I quite get it. It is referred to in the comments of the
> > menu_get_menu() function. You can view the include at
> >
> >  http://www.pixelmech.com/rev/menu.txt
> >
>
> It would be more helpful if we could see the actual function
> signature, i.e. the line that says:
>
> function l(...)
> {
> ...
> }
>
> However, my guess based on this:
>
> l($item['title'], $item['path'], array('title' => $item['description']))
>
> Is that you can simply include the span HTML in the first argument, like
> this:
>
> l('<span>'.$item['title'].'</span>', $item['path'], array('title' =>
> $item['description']))
>
> Just a guess, though. Would need to see the function itself to confirm.
>

And, I finally found the function. Here it is:

http://www.pixelmech.com/rev/el.txt

Should I still try how you guessed it?

Tom



More information about the thelist mailing list