function fillpdf_form_delete_confirm_submit in FillPDF 6
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_form_delete_confirm_submit()
- 7.2 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 401 - Allows mappings of PDFs to site content
Code
function fillpdf_form_delete_confirm_submit($form, &$form_state) {
db_query("DELETE FROM {fillpdf_fields} WHERE fid = %d", $form['#pdf_form']->fid);
db_query("DELETE FROM {fillpdf_forms} WHERE fid = %d", $form['#pdf_form']->fid);
drupal_set_message('Your form has been deleted.');
//return 'admin/content/fillpdf';
$form_state['redirect'] = 'admin/content/fillpdf';
}