From 7d9d6b29b3dc3cf4af9a87df621b25c12bfebe42 Mon Sep 17 00:00:00 2001 From: Nikita Petrov Date: Wed, 28 May 2014 16:59:02 +0400 Subject: [PATCH] Ability to alter mPDF setting by other modules. --- pdf_using_mpdf.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdf_using_mpdf.module b/pdf_using_mpdf.module index 43e5301..d47c5ff 100644 --- a/pdf_using_mpdf.module +++ b/pdf_using_mpdf.module @@ -272,6 +272,9 @@ function _pdf_using_mpdf_generator($html, $filename = NULL) { } } + // Ability to alter settings by other modules. + drupal_alter('mpdf_document', $mpdf); + // Writing html content for pdf buffer. $mpdf->WriteHTML($html); -- 1.8.1.msysgit.1