You are here

function deploy_delete_plan_form in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 deploy.plans.admin.inc \deploy_delete_plan_form()

delete a deployment plan confirmation form

1 string reference to 'deploy_delete_plan_form'
deploy_menu in ./deploy.module
Implementation of hook_menu().

File

./deploy.module, line 455

Code

function deploy_delete_plan_form($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;
}