You are here

function farm_plan_type_access in farmOS 7

Access callback for plan types.

Parameters

string $op: The operation being performed.

FarmPlanType $farm_plan_type: The farm plan entity.

Return value

bool Returns true if the user has access.

1 string reference to 'farm_plan_type_access'
farm_plan_entity_info in modules/farm/farm_plan/farm_plan.module
Implements hook_entity_info().

File

modules/farm/farm_plan/farm_plan.module, line 530
Farm plan - A farm plan entity type.

Code

function farm_plan_type_access($op, FarmPlanType $farm_plan_type = NULL) {
  return user_access('administer farm_plan types');
}