Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This function does not accept the breadcrumb parameter.
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return
* A string containing the breadcrumb output.
*/
function corporateclean_breadcrumb($variables){
$breadcrumb = $variables['breadcrumb'];
if (!empty($breadcrumb)) {
$breadcrumb[] = drupal_get_title();
return '<div class="breadcrumb">' . implode(' <span class="breadcrumb-separator">/</span> ', $breadcrumb) . '</div>';
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | quickfix_1429176-1.patch | 635 bytes | Chi |
#1 | quickfix_1429206-0.patch | 647 bytes | Chi |
Comments
Comment #1
Chi CreditAttribution: Chi commentedComment #2
Chi CreditAttribution: Chi commenteddeleted
Comment #3
gtsopour CreditAttribution: gtsopour commentedHello Chi and thank you for reporting this,
Could you check please the following function inside template.php of Drupal 7 Garland theme? I think that the following function returns a themed breadcrumb trail with the same way as corporateclean_breadcrumb().
Thank you for your time.
/George
Comment #4
gtsopour CreditAttribution: gtsopour commentedComment #5
Chi CreditAttribution: Chi commentedYup, I have already filed bug report about garland_breadcrumb(). It seems like many contributed themes just copied garland implementation of this. I am going to report the issues for others.
Comment #6
gtsopour CreditAttribution: gtsopour commentedHello Chi and thank you for your answer,
i will examine this issue more carefully.
Thanks again
/George
Comment #7
alexandreracine CreditAttribution: alexandreracine commentedIs this fixed? Thanks.