function fillpdf_field_delete_confirm_submit in FillPDF 6
Same name and namespace in other branches
- 5 fillpdf.module \fillpdf_field_delete_confirm_submit()
File
- ./
fillpdf.admin.inc, line 707 - Allows mappings of PDFs to site content
Code
function fillpdf_field_delete_confirm_submit($form, &$form_state) {
db_query("DELETE FROM {fillpdf_fields} WHERE fid = %d AND pdf_key ='%s'", $form['#pdf_field']->fid, $form['#pdf_field']->pdf_key);
drupal_set_message('Your field has been deleted.');
//return 'admin/content/fillpdf/'. $form['#pdf_field']->fid;
$form_state['redirect'] = 'admin/content/fillpdf/' . $form['#pdf_field']->fid;
}