You are here

function fillpdf_field_delete_confirm_submit in FillPDF 5

Same name and namespace in other branches
  1. 6 fillpdf.admin.inc \fillpdf_field_delete_confirm_submit()

File

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

Code

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