diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index ea905f5..ad85186 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -433,6 +433,7 @@ function comment_node_links_alter(array &$node_links, NodeInterface $node, array // can do so by implementing a new field formatter. // @todo Make this configurable from the formatter see // http://drupal.org/node/1901110 + $view_mode = $context['view_mode']; if ($view_mode == 'search_index' || $view_mode == 'search_result' || $view_mode == 'print') { // Do not add any links if the entity displayed for: // - search indexing.