function tca_node_node_view in Token Content Access 7
Implements hook_node_view().
File
- tca_node/
tca_node.module, line 84 - Main module file for Token Content Access nodes module.
Code
function tca_node_node_view($node, $view_mode, $langcode) {
// Execute Token Content Access, if the node is being viewed at its own page
// using the full view mode, and the current user isn't able to override Token
// Content Access.
if ($view_mode == 'full' && node_is_page($node) && !user_access('bypass tca_node')) {
tca_execute('node', $node);
}
}