summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-24 08:23:02 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-24 08:23:02 +0000
commit6e334892f2df1f744bdc305570b82f79b2a6cfd2 (patch)
treebd28ef6048e5b046775cd09275dd8af230d649ac /modules/statistics/statistics.module
parente99838fbf488d9bca18f56e7ea6aee32d563ab68 (diff)
downloadbrdo-6e334892f2df1f744bdc305570b82f79b2a6cfd2.tar.gz
brdo-6e334892f2df1f744bdc305570b82f79b2a6cfd2.tar.bz2
- Patch #440768 by Dave Reid: move {node_counter} table from node module to statistics module.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 57407872f..eea3a078c 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -388,3 +388,10 @@ function statistics_ranking() {
);
}
}
+
+/**
+ * Implementation of hook_update_index().
+ */
+function statistics_update_index() {
+ variable_set('node_cron_views_scale', 1.0 / max(1, db_result(db_query('SELECT MAX(totalcount) FROM {node_counter}'))));
+}