Commit a7b19009 authored by jcnventura's avatar jcnventura

Issue #953920: Stop using the print array created by_print_var_generator()....

Issue #953920: Stop using the print array created by_print_var_generator(). Instead make the print.tpl.php a real template and move most of the work into print_preprocess_print().
parent a779e64d
......@@ -137,7 +137,6 @@ function print_preprocess_print(&$variables) {
}
}
$logo_url = FALSE;
switch (variable_get('print_logo_options', PRINT_LOGO_OPTIONS_DEFAULT)) {
case 1: // theme's
......@@ -195,15 +194,18 @@ function theme_print_published($vars) {
*/
function theme_print_breadcrumb($vars) {
$node = $vars['node'];
$old_path = $_GET['q'];
$path = empty($node->nid) ? $node->path : "node/$node->nid";
menu_set_active_item($path);
$breadcrumb = drupal_get_breadcrumb();
if (!empty($breadcrumb)) {
$breadcrumb[] = menu_get_active_title();
menu_set_active_item($old_path);
return filter_xss(implode(' > ', $breadcrumb));
}
else {
menu_set_active_item($old_path);
return '';
}
}
......
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