You are here

function fillpdf_form_delete_confirm_submit in FillPDF 5

Same name and namespace in other branches
  1. 6 fillpdf.admin.inc \fillpdf_form_delete_confirm_submit()
  2. 7.2 fillpdf.admin.inc \fillpdf_form_delete_confirm_submit()
  3. 7 fillpdf.admin.inc \fillpdf_form_delete_confirm_submit()

File

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

Code

function fillpdf_form_delete_confirm_submit($form_id, &$form_values) {
  db_query("DELETE FROM {fillpdf_fields} WHERE fid = %d", $form_values['form']->fid);
  db_query("DELETE FROM {fillpdf_forms} WHERE fid = %d", $form_values['form']->fid);
  drupal_set_message('Your form has been deleted.');
  return 'admin/content/fillpdf';
}