Menu delimiters or separators in Drupal. Tested on Drupal version 6.
Source code viewer
<?php /** * Return a themed set of links delimitated by "|" * An override of theme_links() * * @see theme_links */ $output = ''; $output = '<ul'. drupal_attributes($attributes) .'>'; $i = 1; foreach ($links as $key => $link) { $class = $key; // Add first, last and active classes to the list of links to help out themers. if ($i == 1) { $class .= ' first'; } if ($i == $num_links) { $class .= ' last'; } if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))) { $class .= ' active'; } // Pass in $link as $options, they share the same keys. $output .= l($link['title'], $link['href'], $link); } // Some links are actually not links, but we wrap these in <span> for adding title and class attributes $link['title'] = check_plain($link['title']); } $span_attributes = ''; $span_attributes = drupal_attributes($link['attributes']); } $output .= '<span'. $span_attributes .'>'. $link['title'] .'</span>'; } $delimiter = '<li class="delimiter">|</li>'; if ($i == $num_links){ $delimiter = ''; } $i++; $output .= "</li>" . $delimiter; } $output .= '</ul>'; } return $output; }Programming Language: PHP