You are here

function print_controller_html in Printer, email and PDF versions 5.3

Same name and namespace in other branches
  1. 5.4 print.pages.inc \print_controller_html()
  2. 6 print.pages.inc \print_controller_html()
  3. 7.2 print.pages.inc \print_controller_html()
  4. 7 print.pages.inc \print_controller_html()
  5. 5.x print.pages.inc \print_controller_html()

Generate an HTML version of the printer-friendly page

See also

print_controller()

_print_get_template()

1 string reference to 'print_controller_html'
print_menu in ./print.module
Implementation of hook_menu().

File

./print.pages.inc, line 18
Contains the functions to generate Printer-friendly pages.

Code

function print_controller_html() {
  $args = func_get_args();

  // Remove the print/ prefix
  $path = implode('/', $args);
  $cid = isset($_GET['comment']) ? (int) $_GET['comment'] : NULL;
  $print = print_controller($path, $cid);
  if ($print !== FALSE) {
    $node = $print['node'];
    include_once _print_get_template('html', $print['type']);
  }
}