I messed up the thompson_menu_link() function a bit. I don't like the way I did it, but he did the job. Basically, it reads in the menu name and uses a conditional expression to return the <li> element followed by the pipe. Here is the whole block:
function thompson_menu_link(array $variables) { $element = $variables['element']; $menuName = $variables['element']["#original_link"]["menu_name"]; $sub_menu = ''; if ($element['#below']) { $sub_menu = drupal_render($element['#below']); } $output = l($element['#title'], $element['#href'], $element['#localized_options']); if ($menuName == "menu-footer-menu" && !in_array("last",$element['#attributes']['class']) { $finalString = '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>|\n"; } else { $finalString = '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n"; } return $finalString; }
source share