You are here

function _site_map_taxonomys in Site map 5

Same name and namespace in other branches
  1. 6.2 site_map.module \_site_map_taxonomys()
  2. 6 site_map.module \_site_map_taxonomys()
  3. 7 site_map.module \_site_map_taxonomys()

This function can be called from blocks or pages as desired.

1 call to _site_map_taxonomys()
theme_site_map_display in ./site_map.module

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;
}