function fillpdf_form_delete_confirm_submit in FillPDF 7.2
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_form_delete_confirm_submit()
- 6 fillpdf.admin.inc \fillpdf_form_delete_confirm_submit()
- 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';
}