diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 42d7326..4e722ac 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -262,29 +262,6 @@ function _forum_node_check_node_type(EntityInterface $node) { } /** - * Implements hook_node_view(). - */ -function forum_node_view(EntityInterface $node, EntityDisplay $display, $view_mode) { - $vid = config('forum.settings')->get('vocabulary'); - $vocabulary = taxonomy_vocabulary_load($vid); - if (_forum_node_check_node_type($node)) { - if ($view_mode == 'full' && node_is_page($node)) { - // Breadcrumb navigation - $breadcrumb[] = l(t('Home'), NULL); - $breadcrumb[] = l($vocabulary->name, 'forum'); - if ($parents = taxonomy_term_load_parents_all($node->forum_tid)) { - $parents = array_reverse($parents); - foreach ($parents as $parent) { - $breadcrumb[] = l($parent->label(), 'forum/' . $parent->id()); - } - } - drupal_set_breadcrumb($breadcrumb); - - } - } -} - -/** * Implements hook_node_validate(). * * Checks in particular that the node is assigned only a "leaf" term in the diff --git a/core/modules/forum/forum.pages.inc b/core/modules/forum/forum.pages.inc index 422d92e..7b7d02d 100644 --- a/core/modules/forum/forum.pages.inc +++ b/core/modules/forum/forum.pages.inc @@ -28,22 +28,6 @@ function forum_page($forum_term = NULL) { drupal_set_title($vocabulary->label()); } - // Breadcrumb navigation. - $breadcrumb[] = l(t('Home'), NULL); - if ($forum_term->id()) { - // Parent of all forums is the vocabulary name. - $breadcrumb[] = l($vocabulary->label(), 'forum'); - } - // Add all parent forums to breadcrumbs. - if ($forum_term->parents) { - foreach (array_reverse($forum_term->parents) as $parent) { - if ($parent->id() != $forum_term->id()) { - $breadcrumb[] = l($parent->label(), 'forum/' . $parent->id()); - } - } - } - drupal_set_breadcrumb($breadcrumb); - if ($forum_term->id() && array_search($forum_term->id(), $config->get('containers')) === FALSE) { // Add RSS feed for forums. drupal_add_feed('taxonomy/term/' . $forum_term->id() . '/feed', 'RSS - ' . $forum_term->label());