You are here

function print_pdf_help in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 5.4 print_pdf/print_pdf.module \print_pdf_help()
  2. 5.3 print_pdf/print_pdf.module \print_pdf_help()
  3. 6 print_pdf/print_pdf.module \print_pdf_help()
  4. 5.x print_pdf/print_pdf.module \print_pdf_help()

Implements hook_help().

File

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

Code

function print_pdf_help($path, $arg) {
  $print_pdf_link_pos = variable_get('print_pdf_link_pos', drupal_json_decode(PRINT_PDF_LINK_POS_DEFAULT));
  if ($path !== 'node/%' && !empty($print_pdf_link_pos['help'])) {
    static $output = FALSE;
    if ($output === FALSE) {
      $output = TRUE;
      $link = print_pdf_insert_link();
      if ($link) {
        return "<span class='print-syslink'>{$link}</span>";
      }
    }
  }
}