function taxonomy_term_is_page
7.x taxonomy.module | taxonomy_term_is_page($term) |
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 drupal-7.x/
modules/ taxonomy/ taxonomy.module - Process variables for taxonomy-term.tpl.php.
File
- drupal-7.x/
modules/ taxonomy/ taxonomy.module, line 937 - Enables the organization of content into categories.
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);
}