You are here

function deploy_delete_item_form in Deploy - Content Staging 5

delete an item from a deployment plan confirmation form.

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

File

./deploy.module, line 524

Code

function deploy_delete_item_form($iid = NULL) {
  $item = deploy_get_plan_item($iid);
  if (!$item) {
    drupal_goto('admin/build/deploy');
  }
  $form['iid'] = array(
    '#type' => 'value',
    '#value' => $iid,
  );
  $form['pid'] = array(
    '#type' => 'value',
    '#value' => $item['pid'],
  );
  $form = confirm_form($form, t('Are you sure you want to delete the deployment plan item %item_name?', array(
    '%item_name' => $item['description'],
  )), 'admin/build/deploy/list/' . $item['pid'], t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  return $form;
}