function farm_plan_properties_access in farmOS 7
Access callback for farm_plan properties.
1 string reference to 'farm_plan_properties_access'
- farm_plan_entity_property_info_alter in modules/
farm/ farm_plan/ farm_plan.module - Implements hook_entity_property_info_alter().
File
- modules/
farm/ farm_plan/ farm_plan.module, line 537 - Farm plan - A farm plan entity type.
Code
function farm_plan_properties_access($op, $property, $entity = NULL, $account = NULL) {
// Delegate to the general farm_plan access callback, based on the $op.
switch ($op) {
case 'view':
return farm_plan_access('view', $entity, $account);
case 'edit':
return farm_plan_access('update', $entity, $account);
}
// Otherwise, deny access.
return FALSE;
}