Revision: 11418
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 4, 2009 12:39 by zachharkey
Initial Code
/** * Make breadcrumbs include the current page as an inactive crumb * Also, remove the top level for image_galleries. */ function phptemplate_breadcrumb($breadcrumb) { if (!empty($breadcrumb)) { $breadcrumb_new = array(); // Create new breadcrumb array without the top level image gallery link foreach ($breadcrumb as $crumb) { if (strstr($crumb, '<a href="/image">') != TRUE) { $breadcrumb_new[] = $crumb; } } $breadcrumb_new[] = '<span class="active">'. drupal_get_title() .'</span>'; return '<div class="breadcrumb">'. implode(' » ', $breadcrumb_new) .'</div>'; } }
Initial URL
Initial Description
Initial Title
Drupal breadcrumb override
Initial Tags
drupal, theme
Initial Language
PHP