You are here

function fillpdf_form_delete_confirm in FillPDF 6

Same name and namespace in other branches
  1. 5 fillpdf.module \fillpdf_form_delete_confirm()
  2. 7.2 fillpdf.admin.inc \fillpdf_form_delete_confirm()
  3. 7 fillpdf.admin.inc \fillpdf_form_delete_confirm()

Delete form confirmation

1 string reference to 'fillpdf_form_delete_confirm'
fillpdf_menu in ./fillpdf.module
Implementation of hook_menu().

File

./fillpdf.admin.inc, line 380
Allows mappings of PDFs to site content

Code

function fillpdf_form_delete_confirm(&$form_state, $pdf_form) {
  if (is_numeric(arg(3))) {
    $pdf_form = db_fetch_object(db_query("SELECT * FROM {fillpdf_forms} WHERE fid = %d", arg(3)));
  }
  if (!$pdf_form) {
    drupal_not_found();
    exit;
  }
  $form['#pdf_form'] = $pdf_form;
  return confirm_form($form, t('Are you sure you want to delete the form %title?', array(
    '%title' => $pdf_form->title,
  )), 'admin/content/fillpdf', t('Deleting a form will delete all the fields you created in it. This action cannot be undone.'), t('Delete'), t('Cancel'));
}