Display navigation in footer in Drupal

Here is a quick code snippet to put that pretty, pipe-seperated navigation into the bottom of your site, so that Google can eat it all up.

foreach(menu_navigation_links("primary-links", 1) as $m):
  $arrNav[] = l($m['title'], $m['href']);
echo implode(" | ", $arrNav);

Substitue “primary-links” for the internal menu name of your choice. Enjoy!

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Twitter

Comment | Trackback


One Response to “Display navigation in footer in Drupal”

  1. Dean Says:

    November 26th, 2011 at 9:39 pm

    Nice post, We are checking back again usually to watch out for upgrades.

Leave a Reply