From 08287eae96dd9850f470793dcefc403292b18afc Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <eric@unl.edu> Date: Thu, 1 Jul 2010 18:24:07 +0000 Subject: [PATCH] forgot to remove unl_wdn_head_title() git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@127 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/themes/unl_wdn/template.php | 29 --------------------------- 1 file changed, 29 deletions(-) diff --git a/sites/all/themes/unl_wdn/template.php b/sites/all/themes/unl_wdn/template.php index 3050ac36..cde1aafa 100644 --- a/sites/all/themes/unl_wdn/template.php +++ b/sites/all/themes/unl_wdn/template.php @@ -81,35 +81,6 @@ function unl_wdn_breadcrumb($variables) return $html; } -function unl_wdn_head_title() -{ - // Based on - // http://api.drupal.org/api/function/menu_get_active_breadcrumb/5 - // We don't have to add the current page, as drupal normally drops it - $path[] = 'Home'; - - // $trail = _menu_get_active_trail(); - $trail = array(); - foreach ($trail as $mid) { - $item = menu_get_item($mid); - - if ($item['type'] & MENU_VISIBLE_IN_BREADCRUMB) { - $path[] = $item['title']; - } - } - - // Change 'Home' to be $site_name - array_unshift($path, str_replace( 'Home', unl_get_site_name_abbreviated(), array_shift($path))); - - //Prepend UNL - array_unshift($path, 'UNL'); - if (!drupal_is_front_page()) { - $path[] = drupal_get_title(); - } - - return implode(' | ', $path); -} - function unl_wdn_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) { if ($extra_class) { -- GitLab