--- D:\xampplite\htdocs\koshin-local\sites\all\modules\taxonomy_breadcrumb\taxonomy_breadcrumb.module 2009-01-12 10:19:26.000000000 +-0800 +++ D:\xampplite\htdocs\koshin\sites\all\modules\taxonomy_breadcrumb\taxonomy_breadcrumb.module 2009-03-10 20:49:19.000000000 +-0800 @@ -34,12 +34,13 @@ * - With multi-parent terms, all parent terms seem to show up, look into * taxonomy_get_parents_all. */ // default value for Advanced Settings, Node Types define('TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT', 'book'); +define('TAXONOMY_BREADCRUMB_INCLUDE_NODE_TITLE', TRUE); /** * Implementation of hook_menu(). */ function taxonomy_breadcrumb_menu() { $items['admin/settings/taxonomy-breadcrumb'] = array( @@ -86,13 +87,17 @@ // THEN modify the breadcrumb trail. if ($in_list == variable_get('taxonomy_breadcrumb_include_nodes', FALSE) ) { // Extract lightest term from lightest vocabulary assosciated with node. $term = _taxonomy_breadcrumb_node_get_lightest_term($node->nid); $breadcrumb = _taxonomy_breadcrumb_generate_breadcrumb($term->tid); - drupal_set_breadcrumb($breadcrumb); + + if(variable_get('taxonomy_breadcrumb_include_node_title', TAXONOMY_BREADCRUMB_INCLUDE_NODE_TITLE)) + $breadcrumb[] = $node->title; + + drupal_set_breadcrumb($breadcrumb); } } } /** * Implementation of hook_help().