You are here

function print_mail_help in Printer, email and PDF versions 5.x

Same name and namespace in other branches
  1. 5.4 print_mail/print_mail.module \print_mail_help()
  2. 5.3 print_mail/print_mail.module \print_mail_help()
  3. 6 print_mail/print_mail.module \print_mail_help()
  4. 7 print_mail/print_mail.module \print_mail_help()

Implementation of hook_help().

File

print_mail/print_mail.module, line 185
Displays Printer-friendly versions of Drupal pages.

Code

function print_mail_help($path, $arg) {
  $print_mail_link_pos = variable_get('print_mail_link_pos', array(
    PRINT_MAIL_LINK_POS_DEFAULT => PRINT_MAIL_LINK_POS_DEFAULT,
  ));
  if ($path !== 'node/%' && !(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>";
      }
    }
  }
}