You are here

function fillpdf_form_delete_template in FillPDF 7

Delete a FillPDF template and all database entries related to it.

Parameters

int $fid: The {fillpdf_forms.fid} of the template.

1 call to fillpdf_form_delete_template()
fillpdf_form_delete_confirm_submit in ./fillpdf.admin.inc
Delete form submit.

File

./fillpdf.module, line 2278

Code

function fillpdf_form_delete_template($fid) {
  $fid = (int) $fid;
  db_delete('fillpdf_fields')
    ->condition('fid', $fid)
    ->execute();
  fillpdf_form_delete_file($fid);
  db_delete('fillpdf_forms')
    ->condition('fid', $fid)
    ->execute();
}