What should I name my overriding render-function? I'm just starting out with drupal and need some custom html for an intricate menu system. My plan is to override the html-generating functions in template.php. 

My theme name is "Drupal subtheme" and the navbar I would like to target has the machine name "menu-usm-navbar-small". What should I name the functions that overrides the default html-printouts?

I think I have tried every possible combination of these. Some examples of what I've tried:

function drupal_subtheme_menu_link($variables) {
    return "foo";
}

function drupal_subtheme__menu_usm_navbar_small($variables) {
    return "foo";
}
It depends on what you want to target.

If it's the tree of the menu you can use theme_menu_tree :

function drupal_subtheme_menu_tree__menu__menu_usm_navbar_small($variables) {
   return '&lt;ul class="menu"&gt;' . $variables['tree'] . '&lt;/ul&gt;';
}


if it's the link, you can use theme_menu_link :

function drupal_subtheme_menu_link__menu__menu_usm_navbar_small($variables) {
   $element = $variables['element'];
   $sub_menu = '';

   if ($element['#below']) {
     $sub_menu = drupal_render($element['#below']);
   }
   $output = l($element['#title'], $element['#href'], $element['#localized_options']);
   return '&lt;li' . drupal_attributes($element['#attributes']) . '&gt;' . $output . $sub_menu . "&lt;/li&gt;\n";
}


These functions need to be in template.php