You are here

function rh_taxonomy_taxonomy_term_view in Rabbit Hole 7.2

Implements hook_taxonomy_term_view().

File

modules/rh_taxonomy/rh_taxonomy.module, line 83
Main module file for Rabbit Hole taxonomy terms module.

Code

function rh_taxonomy_taxonomy_term_view($term, $view_mode, $langcode) {

  // Execute Rabbit Hole, if the term is being viewed at its own page using the
  // full view mode, and the current user isn't able to override Rabbit Hole.
  if ($view_mode == 'full' && taxonomy_term_is_page($term) && !user_access('bypass rh_taxonomy')) {
    rabbit_hole_execute('taxonomy_term', $term);
  }
}