Community Documentation

drupal_get_breadcrumb

5 common.inc drupal_get_breadcrumb()
6 common.inc drupal_get_breadcrumb()
7 common.inc drupal_get_breadcrumb()
8 common.inc drupal_get_breadcrumb()

Get the breadcrumb trail for the current page.

▾ 3 functions call drupal_get_breadcrumb()

chameleon_page in themes/chameleon/chameleon.theme
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.

File

includes/common.inc, line 89
Common functions that many Drupal modules will need to reference.

Code

<?php
function drupal_get_breadcrumb() {
  $breadcrumb = drupal_set_breadcrumb();

  if (is_null($breadcrumb)) {
    $breadcrumb = menu_get_active_breadcrumb();
  }

  return $breadcrumb;
}
?>
Login or register to post comments