3

Someone a idea how that I can retrieve all my Taxonomy list from Drupal? thanks!

user001
  • 441
  • 3
  • 8
  • 24

2 Answers2

3
$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);
}
Gokul N K
  • 2,428
  • 2
  • 32
  • 40
0

Are you thinking about something like taxonomy_get_vocabularies()?

J. Taylor
  • 4,567
  • 3
  • 35
  • 55