diff options
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 59e112b38..fce5f6acf 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -304,12 +304,14 @@ function statistics_get($nid) { * Implements hook_block_info(). */ function statistics_block_info() { + $blocks = array(); + if (variable_get('statistics_count_content_views', 0)) { $blocks['popular']['info'] = t('Popular content'); // Too dynamic to cache. $blocks['popular']['cache'] = DRUPAL_NO_CACHE; - return $blocks; } + return $blocks; } /** |