Custom Link Display for Drupal

If you want to do link display in drupal, but not rely on the link processing that drupal does automatically, it's not to hard to setup some code to display a link list that handles things slightly differently.

I wanted to do a display where the last item of the list was displayed differently. Turns out it's really simple. I borrowed the idea from http://www.heydon.com.au/?q=node/661


foreach ($primary_links as $singlelink) {
  print "
  • "; if ($singlelink == end($primary_links)) { $singlelink = str_replace("" ;