--- C:\Documents and Settings\Andy.LIVELINK\Desktop\taxonomy_context 2.module +++ C:\Documents and Settings\Andy.LIVELINK\Desktop\taxonomy_context.module @@ -160,6 +160,11 @@ ); } } + // MOVED HERE FROM hook_init + elseif (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2)) && empty($_GET['from'])) { + // kludge: should probably have a setting here that allows you to prevent using taxcon breadcrumbs + drupal_set_breadcrumb(taxonomy_context_get_breadcrumb(taxonomy_context_get_context())); + } } return $items; } @@ -260,14 +265,14 @@ /** * Implementation of hook_init(). - */ + * MOVED TO hook_menu function taxonomy_context_init() { if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2)) && empty($_GET['from'])) { // kludge: should probably have a setting here that allows you to prevent using taxcon breadcrumbs drupal_set_breadcrumb(taxonomy_context_get_breadcrumb(taxonomy_context_get_context())); } } - +// */ /** * Implementation of hook_help(). */