You are here

function theme_tvi_term_description in Taxonomy Views Integrator 7

Same name and namespace in other branches
  1. 6 tvi.module \theme_tvi_term_description()

Return the taxonomy description (for active view overrides).

Parameters

object $term: The term object.

Return value

string The term description.

File

./tvi.module, line 198
Allow to define views to be used instead of default drupal behavior on taxonomy terms pages.

Code

function theme_tvi_term_description($term) {
  if (is_object($term)) {
    return '<div class="tvi-term-desc">' . filter_xss_admin($term->description) . '</div>';
  }
  return '';
}