theme_breadcrumb

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 6 theme_breadcrumb($breadcrumb)
7 – 8 theme_breadcrumb($variables)

Returns HTML for a breadcrumb trail.

Parameters

$variables An associative array containing:

  • breadcrumb: An array containing the breadcrumb links.

Related topics

Code

includes/theme.inc, line 1542

<?php
function theme_breadcrumb($variables) {
  $breadcrumb = $variables['breadcrumb'];

  if (!empty($breadcrumb)) {
    // Provide a navigational heading to give context for breadcrumb links to
    // screen-reader users. Make the heading invisible with .element-invisible.
    $output = '<h2 class="element-invisible">' . t('You are here') . '</h2>';

    $output .= '<div class="breadcrumb">' . implode(' » ', $breadcrumb) . '</div>';
    return $output;
  }
}
?>