You are here

function fillpdf_form_delete_confirm in FillPDF 5

Same name and namespace in other branches
  1. 6 fillpdf.admin.inc \fillpdf_form_delete_confirm()
  2. 7.2 fillpdf.admin.inc \fillpdf_form_delete_confirm()
  3. 7 fillpdf.admin.inc \fillpdf_form_delete_confirm()
1 string reference to 'fillpdf_form_delete_confirm'
fillpdf_menu in ./fillpdf.module
Implementation of hook_menu().

File

./fillpdf.module, line 233
Allows mappings of PDFs to site content

Code

function fillpdf_form_delete_confirm($pdf_form) {
  if (is_numeric(arg(4))) {
    $pdf_form = db_fetch_object(db_query("SELECT * FROM {fillpdf_forms} WHERE fid = %d", arg(4)));
  }
  if (!$pdf_form) {
    drupal_not_found();
    exit;
  }
  $form['form'] = array(
    '#type' => 'value',
    '#value' => $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'));
}