Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a call to node_view() in node_comment_block_block_view(). Calling node_view() generates a call to hook_node_view(), which in some cases can cause performance issues.
Comment | File | Size | Author |
---|---|---|---|
#1 | node_view_replaced_with_node_show-1977362.patch | 690 bytes | dotsi |
Comments
Comment #1
dotsi CreditAttribution: dotsi commentedProvided a patch where node_view is replaced with node_show. Also some minor changes to the following code has been done.
Comment #2
dotsi CreditAttribution: dotsi commentedActually, just realized that node_show calls node_view_multiple, which of course calls node_view for each node that is passed as a parameter. So this patch is sort of obsolete.
Comment #3
opdaviesIn which case, I'll mark this as "closed".