You are here

function farm_asset_properties_access in farmOS 7

Access callback for farm_asset properties.

1 string reference to 'farm_asset_properties_access'
farm_asset_entity_property_info_alter in modules/farm/farm_asset/farm_asset.module
Implements hook_entity_property_info_alter().

File

modules/farm/farm_asset/farm_asset.module, line 693
Farm asset - A farm asset entity type.

Code

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

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

  // Otherwise, deny access.
  return FALSE;
}