Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By khoogheem on
I need to determine the active link using 4.6 when using the primary foreach loop for a theme so I can make it stand out.
<?php if (is_array($primary_links)) : ?>
<ul>
<?php foreach ($primary_links as $link): ?>
<li><?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
I have looked at post (http://drupal.org/node/46020) and it just does not seem to work for me. using $link gives you the url and title, is there a way to just get the actual url out of there so I can compare it against the request_uri