| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_dss_book.module,v 1.2 2007/03/12 12:25:50 moonray Exp $ |
// $Id: taxonomy_dss_book.module,v 1.3 2007/05/17 20:38:35 moonray Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 51 |
$breadcrumb = taxonomy_dss_generate_breadcrumb($tids, $names); |
$breadcrumb = taxonomy_dss_generate_breadcrumb($tids, $names); |
| 52 |
$breadcrumb[] = array('path' => 'node/'. $node->id, 'title' => $node->title); |
$breadcrumb[] = array('path' => 'node/'. $node->id, 'title' => $node->title); |
| 53 |
menu_set_location($breadcrumb); |
menu_set_location($breadcrumb); |
| 54 |
|
taxonomy_dss_set_breadcrumb($breadcrumb); |
| 55 |
} |
} |
| 56 |
elseif (module_exists('path_redirect')) { |
elseif (module_exists('path_redirect')) { |
| 57 |
$result = db_query("SELECT path FROM {path_redirect} WHERE redirect = '%s'", 'node/'. $root->nid); |
$result = db_query("SELECT path FROM {path_redirect} WHERE redirect = '%s'", 'node/'. $root->nid); |
| 70 |
$breadcrumb = array_merge($breadcrumb, $nbreadcrumb); |
$breadcrumb = array_merge($breadcrumb, $nbreadcrumb); |
| 71 |
|
|
| 72 |
menu_set_location($breadcrumb); |
menu_set_location($breadcrumb); |
| 73 |
|
taxonomy_dss_set_breadcrumb($breadcrumb); |
| 74 |
|
|
| 75 |
// Set the title of this page |
// Set the title of this page |
| 76 |
$term = end($breadcrumb); |
$term = end($breadcrumb); |