function fillpdf_form_delete_confirm in FillPDF 7.2
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_form_delete_confirm()
- 6 fillpdf.admin.inc \fillpdf_form_delete_confirm()
- 7 fillpdf.admin.inc \fillpdf_form_delete_confirm()
Delete form confirmation
1 string reference to 'fillpdf_form_delete_confirm'
- fillpdf_menu in ./
fillpdf.module - Implements hook_menu().
File
- ./
fillpdf.admin.inc, line 405 - Allows mappings of PDFs to site content
Code
function fillpdf_form_delete_confirm($form, &$form_state, $pdf_form) {
if (is_numeric(arg(3))) {
$pdf_form = db_query("SELECT * FROM {fillpdf_forms} WHERE fid = :fid", array(
':fid' => arg(3),
))
->fetch();
}
if (!$pdf_form) {
drupal_not_found();
drupal_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/structure/fillpdf', t('Deleting a form will delete all the fields you created in it. This action cannot be undone.'), t('Delete'), t('Cancel'));
}