You are here

function log_properties_access in Log entity 7

Access callback for log properties.

1 string reference to 'log_properties_access'
log_entity_property_info_alter in ./log.module
Implements hook_entity_property_info_alter().

File

./log.module, line 883
Log - A general purpose record keeping system.

Code

function log_properties_access($op, $property, $entity = NULL, $account = NULL) {

  // Delegate to the general log access callback, based on the $op.
  switch ($op) {
    case 'view':
      return log_access('view', $entity, $account);
    case 'edit':
      return log_access('update', $entity, $account);
  }

  // Otherwise, deny access.
  return FALSE;
}