function theme_breadcrumb

7.x theme.inc theme_breadcrumb($variables)
5.x theme.inc theme_breadcrumb($breadcrumb)
6.x theme.inc theme_breadcrumb($breadcrumb)

Returns HTML for a breadcrumb trail.

Parameters

$variables: An associative array containing:

  • breadcrumb: An array containing the breadcrumb links.

Related topics

4 theme calls to theme_breadcrumb()
BlogTestCase::verifyBlogs in drupal/modules/blog/blog.test
Verify the logged in user has the desired access to the various blog nodes.
ForumTestCase::verifyForums in drupal/modules/forum/forum.test
Verifies that the logged in user has access to a forum nodes.
ForumTestCase::verifyForumView in drupal/modules/forum/forum.test
Verifies display of forum page.
template_process_page in drupal/includes/theme.inc
Process variables for page.tpl.php
7 string references to the theme hook from theme_breadcrumb()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

BlogTestCase::verifyBlogs in drupal/modules/blog/blog.test
Verify the logged in user has the desired access to the various blog nodes.
drupal_common_theme in drupal/includes/common.inc
Provides theme registration for themes across .inc files.
ForumTestCase::verifyForums in drupal/modules/forum/forum.test
Verifies that the logged in user has access to a forum nodes.
ForumTestCase::verifyForumView in drupal/modules/forum/forum.test
Verifies display of forum page.
garland_breadcrumb in drupal/themes/garland/template.php
Override of theme_breadcrumb().

... See full list

File

drupal/includes/theme.inc, line 1897
The theme system, which controls the output of Drupal.

Code

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;
  }
}