function marinelli_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="terminfo"><p>'; $output .= filter_xss_admin($description); $output .= '</p></div>'; } } $output .= taxonomy_render_nodes($result); return $output; }
/** * Modifyied Theme Function theme_taxonomy_term_page * render tags **/ function alim_taxonomy_term_page($tids, $result) { drupal_add_css(drupal_get_path('module', 'taxonomy') .'/taxonomy.css'); $output = ''; $new = ''; // 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; /*if($term->vid == 9 ){ // check this is a community tag $count = taxonomy_term_count_nodes($term->tid); $new = "<h4>Tag : $term->name ( $count )</h4>"; }*/ // Check that a description is set. if (!empty($description)) { $output .= '<div class="taxonomy-term-description">'; $output .= filter_xss_admin($description); $output .= '</div>'; } } //$output .= $new ; $output .= taxonomy_render_nodes($result); return $output; }