You are here

function pdf_using_mpdf_clear_folder in PDF using mPDF 7.2

Removes all pdf file and delete the folder.

Parameters

class $pdfmpdf: A variable holding standard class.

boolean #delete: Variable indicating whether to delete folder permanently.

1 call to pdf_using_mpdf_clear_folder()
pdf_using_mpdf_uninstall in ./pdf_using_mpdf.install
Implements hook_uninstall().

File

./pdf_using_mpdf.install, line 90
Removing all PDF set variables and checks for mPDF library existence.

Code

function pdf_using_mpdf_clear_folder(stdClass $pdfmpdf = NULL, $delete = FALSE) {
  $folder = variable_get('pdf_using_mpdf', 'pdf_using_mpdf');
  $folder = file_build_uri($folder);
  return pdf_using_mpdf_delete_recursive($folder, $delete);
}