phptemplate_breadcrumb

Definition

phptemplate_breadcrumb($breadcrumb)
themes/garland/template.php, line 33

Description

Return a themed breadcrumb trail.

Parameters

$breadcrumb An array containing the breadcrumb links.

Return value

a string containing the breadcrumb output.

Code

<?php
function phptemplate_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>';
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.