Assign ID to Main Menu I am working on Drupal 7 project (omega 4 subtheme) with panels and views. I need to assign ID an ID (id="nav") to a DIV that wraps main menu UL. It is a child of div.l-region--navigation. It's the second row of the example bellow. 

&lt;div class="l-region l-region--navigation"&gt;
&lt;div class="panel-pane pane-block pane-system-main-menu"&gt;
    &lt;ul class="menu"&gt;
        &lt;li&gt;&lt;a href="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;    
&lt;/div&gt;




Anyone knows how to do this? Is there a specific drupal way of doing this?
function mytheme_links__system_main_menu($variables) {
$site_frontpage = variable_get('site_frontpage', 'node');
  $html = "&lt;nav id='main-nav' class='animate'&gt;\n";
  foreach ($variables['links'] as $link) {
      if($link['href'] == '&lt;front&gt;') {
        $html .= "&lt;a class='1' href='" .$site_frontpage ."'&gt;" .$link['title'] ."&lt;/a&gt;";
      }
      else {
        $html .= "&lt;a class='2' href='" .$link['href'] ."'&gt;" .$link['title'] ."&lt;/a&gt;";
      }
  }
  $html .= "&lt;/nav&gt;\n";

  return $html;
}


The code can be used in template.php to override the output of the . However, the only variable it seems to accept is $tree, which prints out all the contents of a  and so is not very helpful.