You are here

function rh_node_node_view in Rabbit Hole 7.2

Implements hook_node_view().

File

modules/rh_node/rh_node.module, line 100
Main module file for Rabbit Hole nodes module.

Code

function rh_node_node_view($node, $view_mode, $langcode) {

  // Execute Rabbit Hole, if the node 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' && node_is_page($node) && !user_access('bypass rh_node')) {
    rabbit_hole_execute('node', $node);
  }
}