--- menu_breadcrumb.module Thu Feb 21 07:56:34 2008 +++ menu_breadcrumbNew.module Tue Mar 03 11:26:11 2009 @@ -135,4 +118,25 @@ function menu_breadcrumb_admin_settings_ ); return system_settings_form($form); +} + +function menu_breadcrumb_preprocess(&$vars, $hook) { + if ($hook == 'page') { + $breadcrumb = drupal_get_breadcrumb(); + + if (variable_get('menu_breadcrumb_append_node_title', 0) == 1) { + if (variable_get('menu_breadcrumb_append_node_url', 0) == 1) { + $breadcrumb[] = l(drupal_get_title(), $_GET['q'], array('html' => true)); + } + else { + $breadcrumb[] = drupal_get_title(); + } + } + + if (count($breadcrumb) == 1 && variable_get('menu_breadcrumb_hide_on_single_item', 0)) { + $breadcrumb = array(); + } + + $vars['breadcrumb'] = theme('breadcrumb', $breadcrumb); + } } \ No newline at end of file