function theme_taxonomy_term_page in Drupal 6
Render a taxonomy term page HTML output.
Parameters
$tids: An array of term ids.
$result: A pager_query() result, such as that performed by taxonomy_select_nodes().
Related topics
1 theme call to theme_taxonomy_term_page()
- taxonomy_term_page in modules/
taxonomy/ taxonomy.pages.inc - Menu callback; displays all nodes associated with a term.
File
- modules/
taxonomy/ taxonomy.pages.inc, line 87 - Page callbacks for the taxonomy module.
Code
function theme_taxonomy_term_page($tids, $result) {
drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.css');
$output = '';
// Only display the description if we have a single term, to avoid clutter and confusion.
if (count($tids) == 1) {
$term = taxonomy_get_term($tids[0]);
$description = $term->description;
// Check that a description is set.
if (!empty($description)) {
$output .= '<div class="taxonomy-term-description">';
$output .= filter_xss_admin($description);
$output .= '</div>';
}
}
$output .= taxonomy_render_nodes($result);
return $output;
}