You are here

function farm_plan_delete in farmOS 7

Delete single plan.

Parameters

FarmPlan $farm_plan: The farm plan entity.

1 call to farm_plan_delete()
farm_plan_delete_form_submit in modules/farm/farm_plan/farm_plan.pages.inc
Delete form submit handler.

File

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

Code

function farm_plan_delete(FarmPlan $farm_plan) {
  entity_delete('farm_plan', entity_id('farm_plan', $farm_plan));
}