You are here

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

Same name and namespace in other branches
  1. 6 print.module \print_preprocess_print_node()

Implementation of hook_preprocess_HOOK().

File

./print.module, line 120
Displays Printer-friendly versions of Drupal pages.

Code

function print_preprocess_print_node(&$variables) {
  $format = $variables['type'];
  $type = $variables['node']->type;
  template_preprocess_node($variables);
  $variables['template_files'][] = "node";
  $variables['template_files'][] = "node-{$type}";
  $variables['template_files'][] = "print_node";
  $variables['template_files'][] = "print_node_{$format}";
  $variables['template_files'][] = "print_node_{$format}.node-{$type}";
}