You are here

function print_pdf_print_link in Printer, email and PDF versions 7.2

Implements hook_print_link().

8 calls to print_pdf_print_link()
print_pdf_form_alter in print_pdf/print_pdf.module
Implements hook_form_alter().
print_pdf_generate_path in print_pdf/print_pdf.pages.inc
Gennerate a PDF for a given Drupal path.
print_pdf_insert_link in print_pdf/print_pdf.module
Auxiliary function to display a formatted PDF version link.
print_pdf_menu in print_pdf/print_pdf.module
Implements hook_menu().
print_pdf_node_load in print_pdf/print_pdf.module
Implements hook_node_load().

... See full list

File

print_pdf/print_pdf.module, line 24
Displays Printer-friendly versions of Drupal pages.

Code

function print_pdf_print_link() {
  return array(
    'format' => 'pdf',
    'text' => t('PDF version'),
    'description' => t('Display a PDF version of this page.'),
    'path' => 'printpdf',
    'class' => 'print-pdf',
    'icon' => 'pdf_icon.png',
    'module' => 'print_pdf',
  );
}