Theming breadcrumbs

Theming breadcrumbs in drupal is extremely easy, simply using the theme_breadcrumb hook

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function mytheme_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    $lastitem = sizeof($breadcrumb);
    $crumbs = '<div id="breadcrumbholder"><b>Location : </b>';
    
    
    $a=1;
    foreach($breadcrumb as $value) {
        if ($a!=$lastitem){
         $crumbs .= '<p>'.$value.'martin</p>';
         $a++;
        }
        else {
            $crumbs .= $value;
            
       
        }
    }
    $crumbs .= '</div>';
  }
  return $crumbs;
}