You are here

function entity_metadata_comment_properties_access in Entity API 7

Access callback for restricted comment properties.

1 string reference to 'entity_metadata_comment_properties_access'
entity_metadata_comment_entity_property_info in modules/comment.info.inc
Implements hook_entity_property_info() on top of comment module.

File

modules/callbacks.inc, line 808
Provides various callbacks for the whole core module integration.

Code

function entity_metadata_comment_properties_access($op, $property, $entity = NULL, $account = NULL) {
  return user_access('administer comments', $account);
}