function theme_print_breadcrumb in Printer, email and PDF versions 7.2
Returns HTML for the breadcrumb line of the print template.
Parameters
array $vars: An associative array containing:
- $node: the node object.
Return value
string HTML text with the breadcrumb
Related topics
1 theme call to theme_print_breadcrumb()
- print.tpl.php in ./
print.tpl.php - Default theme implementation to display a printer-friendly version page.
File
- ./
print.pages.inc, line 247
Code
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 '';
}
}