Skip to content

Instantly share code, notes, and snippets.

@taz77
Created May 18, 2012 13:01
Show Gist options
  • Save taz77/2725138 to your computer and use it in GitHub Desktop.
Save taz77/2725138 to your computer and use it in GitHub Desktop.
Drupal Breadcrumbs customization within template.php
<?php
function YOURTHEMENAME_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
$crumbs = '';
$sep = ' &gt; ';
if (!empty($breadcrumb)) {
$crumbs = '<div id="breadcrumbs">';
foreach ($breadcrumb as $value) {
$crumbs .= $value . $sep;
}
$crumbs .= drupal_get_title() . '</div>';
}
return $crumbs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment