Get $breadcrumb variable in toolbar.tpl.php - Drupal 7

2.5k views Asked by At

I want to use $breadcrumb variable in toolbar.tpl.php (administration toolbar). page.tpl.php processed after toolbar.tpl.php so

hook_preprocess_page(){} and hook_preprocess_toolbar(){} useless

how can i do that ?

1

There are 1 answers

2
Clive On BEST ANSWER

You can build the breadcrumb yourself using a combination of drupal_get_breadcrumb() and theme_breadcrumb(), like so:

$breadcrumb = theme('breadcrumb', array('breadcrumb' => drupal_get_breadcrumb()));