You are here

function fillpdf_form_delete_confirm_submit in FillPDF 7.2

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

Delete form submit

File

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

Code

function fillpdf_form_delete_confirm_submit($form, &$form_state) {
  db_delete('fillpdf_fields')
    ->condition('fid', $form['#pdf_form']->fid)
    ->execute();
  db_delete('fillpdf_forms')
    ->condition('fid', $form['#pdf_form']->fid)
    ->execute();
  drupal_set_message(t('Your form has been deleted.'));
  $form_state['redirect'] = 'admin/structure/fillpdf';
}