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']);
endforeach;
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


Code

Leave a Reply