function fillpdf_form_delete_file in FillPDF 7
Delete a FillPDF template file.
Parameters
int $fid: The {fillpdf_forms.fid} of the template.
2 calls to fillpdf_form_delete_file()
- fillpdf_form_delete_template in ./
fillpdf.module - Delete a FillPDF template and all database entries related to it.
- fillpdf_uninstall in ./
fillpdf.install - Implements hook_uninstall().
File
- ./
fillpdf.module, line 2298
Code
function fillpdf_form_delete_file($fid) {
$fid = (int) $fid;
$file = file_load($fid);
file_usage_delete($file, 'fillpdf', 'fillpdf_form', $fid, 0);
file_delete($file);
}