You are here

function _site_map_taxonomys in Site map 6

Same name and namespace in other branches
  1. 5 site_map.module \_site_map_taxonomys()
  2. 6.2 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
Return a themed site map.

File

./site_map.module, line 407
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function _site_map_taxonomys() {
  $output = '';
  if (module_exists('taxonomy') && ($vids = variable_get('site_map_show_vocabularies', array()))) {
    $result = db_query('SELECT vid, name, description FROM {vocabulary} WHERE vid IN (' . db_placeholders($vids, 'int') . ') ORDER BY weight ASC, name', $vids);
    while ($t = db_fetch_object($result)) {
      if (module_exists('i18ntaxonomy')) {
        $t->name = tt("taxonomy:vocabulary:{$t->vid}:name", $t->name);
      }
      $output .= _site_map_taxonomy_tree($t->vid, $t->name, $t->description);
    }
  }
  return $output;
}