I've been doing some w3 validation but I find that my menu's are missing a
<ul> for the
<li>'s. I have read Where is links__system_main_menu defined? but this doesn't really answer my question. I understand that
links__system_main_menu is a theme hook pattern of the form [base hook]__[context]. When links are themed with theme('links__system_main_menu', $vars), theme() will search for and use theme_links__system_main_menu() if it has been defined. If not, it will use theme_links().
The theme i'm using doesn't do much as far as modify the menu system at first glance. In the theme.php file, it contains:
$variables['main_menu_themed'] = theme( 'links__system_main_menu', array( 'links' => $variables['main_menu'], 'attributes' => array( 'id' => '', 'class' => array('links', 'clearfix'), ), 'heading' => array( 'text' => t('Main menu'), 'level' => 'h2', 'class' => array('element-invisible'), ), ) );
How can I modify the actual output of the menu?