function print_mail_help in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.4 print_mail/print_mail.module \print_mail_help()
- 5.3 print_mail/print_mail.module \print_mail_help()
- 7 print_mail/print_mail.module \print_mail_help()
- 5.x print_mail/print_mail.module \print_mail_help()
Implementation of hook_help().
File
- print_mail/
print_mail.module, line 188 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_help($path, $arg) {
$print_mail_link_pos = variable_get('print_mail_link_pos', unserialize(PRINT_MAIL_LINK_POS_DEFAULT));
if ($path !== 'node/%' && !empty($print_mail_link_pos['help'])) {
static $output = FALSE;
if ($output === FALSE) {
$output = TRUE;
$link = print_mail_insert_link();
if ($link) {
return "<span class='print-syslink'>{$link}</span>";
}
}
}
}