Get the whole taxonomy from my Drupal

Does anyone know how I can get the whole list of taxonomy from Drupal? thank!

+3
source share
2 answers
$vocabularies = taxonomy_get_vocabularies();

foreach ($vocabularies as $vocab) {
    $terms = taxonomy_get_tree($vocab->vid,  0, -1, 1);
        foreach($terms as $term){
               $items[]= l($term->name, "taxonomy/term/$term->tid");
           }
  }

if(count($items)) {
  return theme('item_list', $items);
}
+3
source

Are you thinking of something like taxonomy_get_vocabularies () ?

0
source

All Articles