function taxonomy_term_is_page

taxonomy_term_is_page($term)

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

Parameters

$term: A term object.

File

modules/taxonomy/taxonomy.module, line 948
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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_term_is_page/7.x