diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-28 16:41:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-28 16:41:19 +0000 |
commit | 27875d3528798b18201716c0b01004f130998416 (patch) | |
tree | 266ad00a03a7f9070e2a4acacfaeb4bcbcfa2001 | |
parent | b6084826787b316595307d1dbbd6876508a60d28 (diff) | |
download | brdo-27875d3528798b18201716c0b01004f130998416.tar.gz brdo-27875d3528798b18201716c0b01004f130998416.tar.bz2 |
#641034 by plach: Make comment lists filterable.
-rw-r--r-- | modules/comment/comment.module | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 40ecb6d31..70e301368 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -685,13 +685,17 @@ function comment_get_thread($node, $mode, $comments_per_page) { $query ->condition('c.nid', $node->nid) ->addTag('node_access') + ->addTag('comment_filter') + ->addMetaData('node', $node) ->limit($comments_per_page); $count_query = db_select('comment', 'c'); $count_query->addExpression('COUNT(*)'); $count_query ->condition('c.nid', $node->nid) - ->addTag('node_access'); + ->addTag('node_access') + ->addTag('comment_filter') + ->addMetaData('node', $node); if (!user_access('administer comments')) { $query->condition('c.status', COMMENT_PUBLISHED); |