function print_mail_help in Printer, email and PDF versions 7
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()
- 6 print_mail/print_mail.module \print_mail_help()
- 5.x print_mail/print_mail.module \print_mail_help()
Implements hook_help().
File
- print_mail/
print_mail.module, line 231 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_help($path, $arg) {
$print_mail_link_pos = variable_get('print_mail_link_pos', drupal_json_decode(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>";
}
}
}
}