You are here

function print_help in Printer, email and PDF versions 5.2

Same name and namespace in other branches
  1. 5.4 print.module \print_help()
  2. 5.3 print.module \print_help()
  3. 6 print.module \print_help()
  4. 7.2 print.module \print_help()
  5. 7 print.module \print_help()
  6. 5.x print.module \print_help()

Implementation of hook_help()

File

./print.module, line 97
Display printer-friendly versions of Drupal pages

Code

function print_help($path) {
  $print_settings = variable_get('print_settings', print_settings_default());
  if ($print_settings['show_link'] && $print_settings['show_sys_link'] && user_access('access print') && preg_match("/^node\\//i", $path) == 0) {
    static $output = FALSE;
    if ($output === FALSE) {
      $output = TRUE;
      return print_insert_link();
    }
  }
}