Commit 62427644 authored by Dries's avatar Dries

- Patch #23320 by Chris Messina: made it easier to theme the printer-friendly book pages.

parent d77cf058
......@@ -620,7 +620,7 @@ function book_print($nid = 0, $depth = 1) {
$html = '<html><head><title>'. check_plain($node->title) .'</title>';
$html .= '<base href="'. $base_url .'/" />';
$html .= "<style type=\"text/css\">\n@import url(misc/print.css);\n</style>";
$html .= theme_stylesheet_import('misc/print.css', 'print');
$html .= '</head><body>'. $output .'</body></html>';
print $html;
......
......@@ -620,7 +620,7 @@ function book_print($nid = 0, $depth = 1) {
$html = '<html><head><title>'. check_plain($node->title) .'</title>';
$html .= '<base href="'. $base_url .'/" />';
$html .= "<style type=\"text/css\">\n@import url(misc/print.css);\n</style>";
$html .= theme_stylesheet_import('misc/print.css', 'print');
$html .= '</head><body>'. $output .'</body></html>';
print $html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment