function print_controller_html in Printer, email and PDF versions 5.3
Same name and namespace in other branches
- 5.4 print.pages.inc \print_controller_html()
- 6 print.pages.inc \print_controller_html()
- 7.2 print.pages.inc \print_controller_html()
- 7 print.pages.inc \print_controller_html()
- 5.x print.pages.inc \print_controller_html()
Generate an HTML version of the printer-friendly page
See also
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']);
}
}