function deploy_delete_plan_form in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 deploy.module \deploy_delete_plan_form()
Delete a deployment plan confirmation form.
Parameters
$form_state: FAPI form state
$pid: Unique identifier of the plan we're deleting.
Return value
FAPI form definition
See also
deploy_delete_plan_form_submit()
1 string reference to 'deploy_delete_plan_form'
- deploy_menu in ./
deploy.module - Implementation of hook_menu().
File
- ./
deploy.plans.admin.inc, line 276 - Page handlers for deploy plan admin.
Code
function deploy_delete_plan_form($form_state, $pid = NULL) {
$plan = deploy_get_plan($pid);
if (!$plan) {
drupal_goto('admin/build/deploy');
}
$form['pid'] = array(
'#type' => 'value',
'#value' => $pid,
);
$form = confirm_form($form, t('Are you sure you want to delete the deployment plan %plan_name?', array(
'%plan_name' => $plan['name'],
)), 'admin/build/deploy', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
return $form;
}