Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By owntheweb on
Hi,
I'm playing with the menu_item_link($link) function in template.php, and am trying to figure out what exactly is in $link. Any thoughts on how to start digging? Is there a documentation anatomy page out there that I'm missing?
Thanks much.
Chris
Comments
api.drupal.org
Always start at api.drupal.org.
http://api.drupal.org/api/function/theme_menu_item_link/6
$link is an array, and print_r() will show it to you.
Yes. I did start there
Yes. I did start there without the answer I was looking for. However, I did space print_r() which was silly. Thanks for the dose of common sense. I'm good to go.
Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb