Get $breadcrumb variable in toolbar.tpl.php - Drupal 7
-
12-12-2019 - |
Question
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 ?
La solution
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()));
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow