You are here

function _node_resource_access in Services 7

Same name and namespace in other branches
  1. 6.3 resources/node_resource.inc \_node_resource_access()
  2. 6.2 services/node_service/node_resource.module \_node_resource_access()
  3. 7.3 resources/node_resource.inc \_node_resource_access()
1 string reference to '_node_resource_access'
node_resource_service_resource in services/node_service/node_resource.module

File

services/node_service/node_resource.module, line 125

Code

function _node_resource_access($op = 'view', $args = array()) {
  if ($op != 'create' && !empty($args)) {
    $node = node_load($args[0]);
  }
  return node_access($op, $node);
}