title: Print terms from a specific vocab at page.tpl drupal 7
body: <p>I used to have a function to create a custom menu by loading all terms from a specific vocab at drupal 6:</p>
  
  <pre><code>function _taxonomy_top_links($vid = NULL) {
    $terms = taxonomy_get_tree($vid);
  
    $taxos = array();
    foreach ($terms as $term) {
      $taxos[] = array('title' =&gt; $term-&gt;name, 'taxonomy/term/' . $term-&gt;tid, 'attributes' =&gt; array('rel' =&gt; 'tag', 'title' =&gt; strip_tags($term-&gt;description)));
    }
    return theme('links', $taxos, array('id' =&gt; 'menu-'. $vid, 'class' =&gt; 'menu clearfix'));
  }
  </code></pre>
  
  <p>This doesn't work at drupal 7 which I guess related to the new field api. How do you grab all terms from a specific vocab to preprocess at page level?</p>
  
  <p>Thanks for any help.</p>