/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<div id="left"> <ul class="menu"> <?php foreach ($primary_links as $class => $link) { echo '<li class="' . $class . '"><a href="/' . drupal_get_path_alias($link['href']) . '/">' . $link['title'] . '</a></li>'; } ?> </ul> </div>
Comments
