You are here

function simpleads_node_access in SimpleAds 7

Same name and namespace in other branches
  1. 7.2 includes/node.inc \simpleads_node_access()

Implements hook_node_access().

File

./simpleads.module, line 151

Code

function simpleads_node_access($node, $op, $account) {
  if (isset($node->type) && $node->type == 'simpleads' && $op == 'view' && !user_access('access ad node', $account)) {
    return NODE_ACCESS_DENY;
  }
}