function deploy_ui_empty_plan_form in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 modules/deploy_ui/deploy_ui.pages.inc \deploy_ui_empty_plan_form()
Form constructor for the empty plan page.
1 string reference to 'deploy_ui_empty_plan_form'
- deploy_ui_menu in modules/
deploy_ui/ deploy_ui.module - Implementation of hook_menu().
File
- modules/
deploy_ui/ deploy_ui.pages.inc, line 33 - Deploy UI page functions.
Code
function deploy_ui_empty_plan_form($form, &$form_state, $plan) {
$form = array();
$form['deploy_plan'] = array(
'#type' => 'value',
'#value' => $plan,
);
return confirm_form($form, t('Are you sure you want to empty the @plan plan?', array(
'@plan' => $plan->title,
)), 'admin/structure/deploy/plans/list/' . $plan->name, t('Emptying the plan will remove all items from the plan.'), t('Empty'), t('Cancel'));
}