Skip to content
Snippets Groups Projects
Commit bd04b0db authored by Brett T Bieber's avatar Brett T Bieber
Browse files

Get document title displaying correctly.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@158 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 4b6712b7
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,16 @@ function unl_wdn_preprocess_html(&$vars, $hook)
$head_title[] = 'Home';
$trail = menu_get_active_trail();
foreach ($trail as $item) {
if ($item['type'] & MENU_VISIBLE_IN_BREADCRUMB) {
$head_title[] = $item['title'];
if (isset($item['title']) && !empty($item['title'])) {
$head_title[] = $item['title'];
}
if (isset($item['page_arguments'],
$item['page_arguments'][0],
$item['page_arguments'][0]->title)) {
$head_title[] = $item['page_arguments'][0]->title;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment