From 7ed9cc5ae35ae78e18f033404b5a9175b37f2ad2 Mon Sep 17 00:00:00 2001
From: Joshua Stewardson <joshua.stewardson@meredith.com>
Date: Wed, 4 Apr 2012 08:36:24 -0500
Subject: [PATCH 2/2] Preventing paging from being called twice by overriding comment_node_view()

---
 .../contrib/commentsblock/commentsblock.module     |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/sites/all/modules/contrib/commentsblock/commentsblock.module b/sites/all/modules/contrib/commentsblock/commentsblock.module
index 288fab4..b8a4f40 100644
--- a/sites/all/modules/contrib/commentsblock/commentsblock.module
+++ b/sites/all/modules/contrib/commentsblock/commentsblock.module
@@ -158,3 +158,18 @@ function commentsblock_block_view($delta = '') {
   return $block;
 }
 
+/**
+ * Implements hook_module_implements_alter().
+ *
+ * Needed to prevent comment_node_view from being called, otherwise pager.inc
+ * associates this block with a separate element from the pager and will never
+ * display more than the first page based on URL arguments.
+ * 
+ * See http://drupal.org/node/1513910
+ */
+
+function commentsblock_module_implements_alter(&$implementations, $hook) {
+  if ($hook == 'node_view') {
+    unset($implementations['comment']);
+  }
+}
\ No newline at end of file
-- 
1.7.4.msysgit.0

