You are here

function print_pdf_help in Printer, email and PDF versions 5.4

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

Implementation of hook_help().

File

print_pdf/print_pdf.module, line 243

Code

function print_pdf_help($path) {
  $print_pdf_link_pos = variable_get('print_pdf_link_pos', array(
    PRINT_PDF_LINK_POS_DEFAULT => PRINT_PDF_LINK_POS_DEFAULT,
  ));
  if (preg_match('!^node/\\d+$!', $path) == 0 && !(empty($print_pdf_link_pos['link']) && empty($print_pdf_link_pos['corner']))) {
    static $output = FALSE;
    if ($output === FALSE) {
      $output = TRUE;
      $link = print_pdf_insert_link();
      if ($link) {
        return "<span class='print-syslink'>{$link}</span>";
      }
    }
  }
}