October 19, 2012 - 12:48
July 29, 2014 - 21:22
Currently there are comments in comment handling in NodeLink which is pretty old.
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeLink.phpundefined @@ -0,0 +1,57 @@ + // Call comment.module's hook_link: comment_link($type, $node = NULL, $teaser = FALSE) + // Call node by reference so that something is changed here + comment_node_view($node, $this->options['teaser'] ? 'teaser' : 'full'); + // question: should we run these through: drupal_alter('link', $links, $node); + // might this have unexpected consequences if these hooks expect items in $node that we don't have? + + // Only render the links, if they are defined. + return !empty($node->content['links']['comment']) ? drupal_render($node->content['links']['comment']) : '';
All these comments relate to Drupal 6, and not the actual code here.
The issue is all about clean up this file.