function print_mail_help in Printer, email and PDF versions 5.4
Same name and namespace in other branches
- 5.3 print_mail/print_mail.module \print_mail_help()
- 6 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 202
Code
function print_mail_help($path) {
$print_mail_link_pos = variable_get('print_mail_link_pos', array(
PRINT_MAIL_LINK_POS_DEFAULT => PRINT_MAIL_LINK_POS_DEFAULT,
));
if (preg_match('!^node/\\d+$!', $path) == 0 && !(empty($print_mail_link_pos['link']) && empty($print_mail_link_pos['corner']))) {
static $output = FALSE;
if ($output === FALSE) {
$output = TRUE;
$link = print_mail_insert_link();
if ($link) {
return "<span class='print-syslink'>{$link}</span>";
}
}
}
}