You are here

function abt_node_view in Access By Term 7

Implements hook_node_view().

File

./abt.module, line 279
abt.module Module for controling access by using user->term<-node relationship.

Code

function abt_node_view($node, $view_mode, $langcode) {
  if (!user_access('allow view abt field content in node')) {
    $node->content = abt_remove_fields($node->content);
  }
}