Commit e84e3152 authored by jcnventura's avatar jcnventura

Revert print-specific node template support for now.

parent 73b4a87e
......@@ -554,7 +554,7 @@ function _print_generate_node($nid, $cid = NULL, $format = PRINT_HTML_FORMAT, $t
}
$build += array(
'#theme' => 'print_node',
'#theme' => 'node',
'#node' => $node,
'#view_mode' => $view_mode,
'#language' => $langcode,
......@@ -566,6 +566,10 @@ function _print_generate_node($nid, $cid = NULL, $format = PRINT_HTML_FORMAT, $t
$content = render($build);
//Get rid of the annoying D7 title link
$pattern = '!(<h2 property="dc:title" datatype="">)\s*<a [^>]*?>(.*?)</a>\s*(</h2>)!mis';
$content = preg_replace($pattern, '$1$2$3', $content);
//Check URL list settings
$_print_urls = _print_url_list_enabled($node, $format);
......
......@@ -28,7 +28,6 @@
<p />
<div class="print-breadcrumb"><?php print $print['breadcrumb']; ?></div>
<hr class="print-hr" />
<h1 class="print-title"><?php print $print['title']; ?></h1>
<div class="print-content"><?php print $print['content']; ?></div>
<div class="print-footer"><?php print $print['footer_message']; ?></div>
<hr class="print-hr" />
......
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