From 506fe741eced428acbcf82a61443038a04e80ee9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 25 Nov 2003 19:54:00 +0000 Subject: - Moved the "Who's online" block from the statistics module to the user module as the code no longer relies on the statistics module. In addition, some code has been simplified and other bits have been removed. Patch by Jeremy. --- modules/statistics.module | 110 +--------------------------------------------- 1 file changed, 2 insertions(+), 108 deletions(-) (limited to 'modules/statistics.module') diff --git a/modules/statistics.module b/modules/statistics.module index 6889adeae..43792014a 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -72,9 +72,8 @@ function statistics_perm() { ** administer statistics module - full administrative control of module ** administer statistics - view statistics / referrer log ** access statistics - see counts per node (if enabled) - ** access userlist - see list of online users */ - return array("administer statistics module", "administer statistics", "access statistics", "access userlist"); + return array("administer statistics module", "administer statistics", "access statistics"); } @@ -119,7 +118,6 @@ function statistics_link($type, $node = 0, $main = 0) { // block configuration: menu("admin/system/block/top nodes block", t("configure 'top nodes' block"), "statistics_admin", 5); - menu("admin/system/block/whos online block", t("configure 'who is online' block"), "statistics_admin", 5); } if (user_access("access content")) { @@ -156,7 +154,7 @@ function statistics_help($section = "admin/help#statistics") { $output .= "

%access

This admin page gives you an at-a-glance look at your top nodes. It is useful for understanding what content on your Drupal site is the most popular. Also on this page are links to the referrer statistics for each listed node.

"; $output .= "

Configuring the statistics module

There are some configuration options added to the main %configuration section:

"; $output .= "