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!

Be Sociable, Share!

One Reply to “Display navigation in footer in Drupal”

Leave a Reply

Your email address will not be published. Required fields are marked *