function entity_metadata_node_revision_access in Entity API 7
Callback for determining access for node revision related properties.
1 string reference to 'entity_metadata_node_revision_access'
- entity_metadata_node_entity_property_info in modules/
node.info.inc - Implements hook_entity_property_info() on top of node module.
File
- modules/
callbacks.inc, line 159 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_node_revision_access($op, $name, $entity = NULL, $account = NULL) {
return $op == 'view' ? user_access('view revisions', $account) : user_access('administer nodes', $account);
}