function farm_plan_type_form_delete_confirm in farmOS 7
Plan type delete form.
Parameters
array $form: The form array.
array $form_state: The form state array.
string $farm_plan_type: The farm plan type.
Return value
array Returns a form array.
1 string reference to 'farm_plan_type_form_delete_confirm'
- farm_plan_menu in modules/
farm/ farm_plan/ farm_plan.module - Implements hook_menu().
File
- modules/
farm/ farm_plan/ farm_plan.admin.inc, line 113 - Farm plan admin pages.
Code
function farm_plan_type_form_delete_confirm(array $form, array &$form_state, $farm_plan_type) {
$form['farm_plan_type'] = array(
'#type' => 'value',
'#value' => $farm_plan_type,
);
// Always provide entity id in the same form key as in the entity edit form.
$form['farm_plan_type_id'] = array(
'#type' => 'value',
'#value' => entity_id('farm_plan_type', $farm_plan_type),
);
return confirm_form($form, t('Are you sure you want to delete plan type %title?', array(
'%title' => entity_label('farm_plan_type', $farm_plan_type),
)), 'farm/plan/' . entity_id('farm_plan_type', $farm_plan_type), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}