http://api.drupal.org/api/function/theme_menu_tree/5 says to me that menu_tree is themeable via template.php. However when I try that in template.php, my customizations do not take.

So is menu_tree actually themeable?

Comments

dvessel’s picture

Category: bug » support
Status: Active » Closed (works as designed)

menu_tree is not directly themable. theme_menu_tree *is* themable.

within template.php:

function themeName_menu_tree($pid = 1) {
  // menu_tree() will return list items.
  // See theme_menu_item() and theme_menu_item_link()
  // to theme the child elements returned by menu_tree().
  if ($tree = menu_tree($pid)) {
    return "\n<ul class=\"menu\">\n". $tree ."\n</ul>\n";
  }
}
stevenpatz’s picture

So I call it like this:

$pi = 496;
print menu_tree($pi);

The template.php has this code:

function bluemarine_menu_tree($tree) {
	return "\n<ul class=\"LFs\">\n". $tree ."\n</ul>\n";
	
	} 

But when I examine the source for the page that calls menu_tree my class ( LFs ) I don't see ul class="LFs" All I really want to do is have each menu item print out on a new line.