Created
March 10, 2010 05:43
-
-
Save zachharkey/327561 to your computer and use it in GitHub Desktop.
Return a themed breadcrumb trail (Drupal 6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return a themed breadcrumb trail. | |
* | |
* @param $breadcrumb | |
* An array containing the breadcrumb links. | |
* @return a string containing the breadcrumb output. | |
*/ | |
function themename_breadcrumb($breadcrumb) { | |
if (!empty($breadcrumb)) { | |
$title = drupal_get_title(); | |
if (!empty($title)) { | |
$breadcrumb[] = '<span class="active">'. $title .'</span>'; | |
} | |
return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment