I found a code in drupal page in this url http://api.drupal.org/api/drupal/includes%21menu.inc/function/theme_menu_tree/6#comment-1073
code is
<?php
function phptemplate_menu_tree($tree,$menu_name="") {
return '<ul class="menu menu-$menu_name ">'. $tree .'</ul>';
}
?>
it is written that we can customize every menu by css and also adding $menu_name.
but even though that I have added this function into my template.php and it is working , $menu_name variable is always empty
really the target that I am following is : I want to modify the css class of the ROOT us base on menu name.
for example for primary links , i want to have this return out put
'<ul class="menu menu-primary-links ">'. $tree .'</ul>'
or for secondary links i want to have this return output
'<ul class="menu menu-secondary-links ">'. $tree .'</ul>'
$tree includes all nested li items from the selected menu.
please help me