Primary and Secondary Links
General Information:
In versions 4.6 and below, primary and secondary links were handled in the theme administration.
As of 4.7 and higher, primary and secondary links have been incorporated into the menu system. To have primary and secondary links in your theme, you make them menu items. A fresh Drupal 4.7 install comes with an empty menu called "Primary Links" that is set to be used to display both the primary and secondary links.
Setting Up Your Primary and Secondary Links:
In version 4.7, there are two configuration screens that deal with these links:
In the admin > settings > menu, you select which menu is used for the primary links and which for the secondary links. If you have added items to the default Primary Links menu and they are not showing up, check to make sure the option on this page hasn't been changed to "No Primary Links".
On admin > menu you will find the default Primary Links menu and you should add your links to that. You can also create a menu to hold the secondary links or create a different menu for the primary links. Be sure to change the options on admin > settings > menu to use the correct menu(s).
Theming Your Link Menus
You can display your links in two ways:
1) You can add the menu block to a region just like any other menu.
2) You can insert this code where you want the links to show up:
<?php if ($primary_links): ?>
<div id="primary">
<?php print theme('links', $primary_links); ?>
</div>
<?php endif; ?>
<?php if (isset($secondary_links)): ?>
<div id="secondary">
<?php print theme('links', $secondary_links); ?>
</div>
<?php endif; ?>You can then use CSS to theme your DIVs however you like. For more information on theming see the Customising the primary and secondary links section of the PHPTemplate Theme Snippets handbook.
