function hook_print_pdf_filename_alter in Printer, email and PDF versions 7.2
Alters the PDF filename.
Changes the value of the PDF filename variable, just before it is used to create the file. When altering the variable, do not suffix it with the '.pdf' extension, as the module will do that automatically.
Parameters
string $pdf_filename: Current value of the pdf_filename variable, after processing tokens and any transliteration steps.
string $path: original alias/system path of the page being converted to PDF.
Related topics
1 invocation of hook_print_pdf_filename_alter()
- print_pdf_controller in print_pdf/
print_pdf.pages.inc - Generate a PDF version of the printer-friendly page.
File
- print_pdf/
print_pdf.api.php, line 138 - Hooks provided by the PDF version module.
Code
function hook_print_pdf_filename_alter(&$pdf_filename, &$path) {
$pdf_filename = $path . 'foo';
}