function print_pdf_help in Printer, email and PDF versions 6
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()
- 7 print_pdf/print_pdf.module \print_pdf_help()
- 5.x print_pdf/print_pdf.module \print_pdf_help()
Implementation of hook_help().
File
- print_pdf/
print_pdf.module, line 354 - Displays Printer-friendly versions of Drupal pages.
Code
function print_pdf_help($path, $arg) {
$print_pdf_link_pos = variable_get('print_pdf_link_pos', unserialize(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>";
}
}
}
}