function print_pdf_help in Printer, email and PDF versions 5.x
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.module \print_pdf_help()
- 5.3 print_pdf/print_pdf.module \print_pdf_help()
- 6 print_pdf/print_pdf.module \print_pdf_help()
- 7 print_pdf/print_pdf.module \print_pdf_help()
Implementation of hook_help().
File
- print_pdf/
print_pdf.module, line 276 - Displays Printer-friendly versions of Drupal pages.
Code
function print_pdf_help($path, $arg) {
$print_pdf_link_pos = variable_get('print_pdf_link_pos', array(
PRINT_PDF_LINK_POS_DEFAULT => PRINT_PDF_LINK_POS_DEFAULT,
));
if ($path !== 'node/%' && !(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>";
}
}
}
}