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.
The database query in ctools_comment_render() is missing things like addTag('comment_filter') and addMetaData('node', $node) that is essential to allowing other modules to properly alter the query if necessary. I see no reason why it can't just re-use the function comment_get_thread() to return the list of comment IDs to render. If this was intentional to duplicate the code, I don't really see any compelling reasons why it can't be re-used.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1235866-ctools-reuse-comment-get-thread.patch | 1.6 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted!