function _site_map_taxonomys in Site map 5
Same name and namespace in other branches
- 6.2 site_map.module \_site_map_taxonomys()
- 6 site_map.module \_site_map_taxonomys()
- 7 site_map.module \_site_map_taxonomys()
This function can be called from blocks or pages as desired.
1 call to _site_map_taxonomys()
File
- ./
site_map.module, line 432 - Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se
Code
function _site_map_taxonomys() {
if (module_exists('taxonomy') && ($vids = variable_get('site_map_show_vocabularies', array()))) {
$result = db_query('SELECT vid, name, description
FROM {vocabulary} WHERE vid IN (%s) ORDER BY weight ASC, name', implode(',', $vids));
while ($t = db_fetch_object($result)) {
$output .= _site_map_taxonomy_tree($t->vid, $t->name, $t->description);
}
}
return $output;
}