You are here

function _site_map_taxonomys in Site map 7

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. 6 site_map.module \_site_map_taxonomys()

Render the latest maps for the taxonomy tree.

Return value

string Returns HTML string of site map for taxonomies.

1 call to _site_map_taxonomys()
template_preprocess_site_map in includes/site_map.theme.inc
Preprocesses the variables for site-map.tpl.php.

File

./site_map.module, line 565
site_map.module

Code

function _site_map_taxonomys($voc) {
  $output = '';
  $options = array();
  if (module_exists('taxonomy') && !empty($voc)) {
    if (module_exists('i18n_taxonomy')) {
      $voc->name = i18n_taxonomy_vocabulary_name($voc, $GLOBALS['language']->language);
    }
    $output .= _site_map_taxonomy_tree($voc->vid, $voc->name, $voc->description);
    _site_map_set_option($options, 'site_map_show_titles', 1, 1, 'show_titles', TRUE);
  }
  return $output;
}