function print_pdf_help in Printer, email and PDF versions 5.3
Same name and namespace in other branches
- 5.4 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()
- 5.x print_pdf/print_pdf.module \print_pdf_help()
Implementation of hook_help().
File
- print_pdf/
print_pdf.module, line 134
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/!i', $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>";
}
}
}
}