Drupal Primary Links


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <div id="left">
  2. <ul class="menu">
  3. <?php foreach ($primary_links as $class => $link) {
  4. echo '<li class="' . $class . '"><a href="/' . drupal_get_path_alias($link['href']) . '/">' . $link['title'] . '</a></li>';
  5. } ?>
  6. </ul>
  7. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.