Posts Tagged ‘drup’

Display navigation in footer in Drupal

Thursday, December 17th, 2009

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!

Tags:
Posted in Code | 1 Comment »