function taxonomy_term_is_page

Same name in other branches
  1. 9 core/modules/taxonomy/taxonomy.module \taxonomy_term_is_page()
  2. 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_term_is_page()
  3. 10 core/modules/taxonomy/taxonomy.module \taxonomy_term_is_page()
  4. 11.x core/modules/taxonomy/taxonomy.module \taxonomy_term_is_page()

Returns whether the current page is the page of the passed-in term.

Parameters

$term: A term object.

1 call to taxonomy_term_is_page()
template_preprocess_taxonomy_term in modules/taxonomy/taxonomy.module
Process variables for taxonomy-term.tpl.php.

File

modules/taxonomy/taxonomy.module, line 950

Code

function taxonomy_term_is_page($term) {
    $page_term = menu_get_object('taxonomy_term', 2);
    return !empty($page_term) ? $page_term->tid == $term->tid : FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.