You are here

function theme_crumbs_breadcrumb in Crumbs, the Breadcrumbs suite 6.2

Default theme implementation for theme('crumbs_breadcrumb'). The default implementation uses the theme's implementation of theme('breadcrumb'). Themes that are crumbs-aware can override this theme hook to ignore theme('breadcrumb'). Such a theme implementation will look much simpler than the default imp.

1 theme call to theme_crumbs_breadcrumb()
crumbs_get_breadcrumb_data in ./crumbs.module

File

./crumbs.breadcrumb.inc, line 12

Code

function theme_crumbs_breadcrumb(array $breadcrumb_items) {
  $original_page_title = drupal_get_title();
  $last_item = array_pop($breadcrumb_items);
  $breadcrumb_items_html = array();
  foreach ($breadcrumb_items as $item) {
    $breadcrumb_items_html[] = crumbs_render_breadcrumb_item($item);
  }

  // Some themes (Zen, in particular) use drupal_get_title() to
  // display the last breadcrumb item.
  // We use drupal_set_title() to temporarily override this value.
  drupal_set_title($last_item['link_title']);
  $breadcrumb_html = theme('breadcrumb', $breadcrumb_items_html);
  drupal_set_title($original_page_title);
  return $breadcrumb_html;
}