function theme_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 modules/blog/blog.test
Verify the logged in user has the desired access to the various blog nodes.
ForumTestCase::verifyForums in modules/forum/forum.test
Verifies that the logged in user has access to a forum nodes.
ForumTestCase::verifyForumView in modules/forum/forum.test
Verifies display of forum page.
template_process_page in includes/theme.inc
Process variables for page.tpl.php

File

includes/theme.inc, line 1898

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.