You are here

function hook_pdf_export_html_alter in PDF Export 7

Change block definition before saving to the database.

Parameters

string $html: The exported HTML ready to be exported. You can add your extra content to it or remove/rewrite whatever you need.

string $filename: The filename of the file to be exported.

1 invocation of hook_pdf_export_html_alter()
pdf_export_render in ./pdf_export.module
Handle the html as PDF.

File

./pdf_export.api.php, line 18
Documentation for PDF Export.

Code

function hook_pdf_export_html_alter(&$html, $filename) {

  // Add a cover on the first page.
  $cover = theme('pdf_cover');
  $html = $cover . $html;
}