Someone a idea how that I can retrieve all my Taxonomy list from Drupal? thanks!
Asked
Active
Viewed 838 times
2 Answers
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
-
1I will try it? I will retrieve all self made Taxonomies from Drupal. thanks for your comment! – user001 Mar 09 '11 at 10:39
-
No problem. I'm pretty sure it's what you're looking for. – J. Taylor Mar 10 '11 at 18:19