summaryrefslogtreecommitdiff
path: root/modules/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-24 16:34:36 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-24 16:34:36 +0000
commita76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 (patch)
tree77a2538001468623dc122943f019daeb6fce9be1 /modules/statistics.module
parent79a5700c57e8ed86b4aab66022a448df978d2e3f (diff)
downloadbrdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.gz
brdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.bz2
- Patch 20910 by chx: centralize print theme page.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r--modules/statistics.module14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 27fd98e40..6161b6cb9 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -154,7 +154,7 @@ function statistics_access_log($aid) {
$output .= ' <tr><th>'. t('User') .'</th><td>'. format_name($access) .'</td></tr>';
$output .= ' <tr><th>'. t('Hostname') ."</th><td>$access->hostname</td></tr>";
$output .= '</table>';
- print theme('page', $output);
+ return $output;
}
else {
drupal_not_found();
@@ -184,7 +184,7 @@ function statistics_node_tracker() {
}
drupal_set_title(check_plain($node->title));
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
else {
drupal_not_found();
@@ -212,7 +212,7 @@ function statistics_user_tracker() {
}
drupal_set_title($account->name);
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
else {
drupal_not_found();
@@ -245,7 +245,7 @@ function statistics_recent_hits($type = 'all', $id = 0) {
$rows[] = array(array('data' => $pager, 'colspan' => '4'));
}
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
/**
@@ -270,7 +270,7 @@ function statistics_top_pages() {
}
drupal_set_title(t('Top pages in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))));
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
/**
@@ -296,7 +296,7 @@ function statistics_top_users() {
}
drupal_set_title(t('Top users in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))));
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
/**
@@ -323,7 +323,7 @@ function statistics_top_referrers() {
$rows[] = array(array('data' => $pager, 'colspan' => '3'));
}
- print theme('page', theme('table', $header, $rows));
+ return theme('table', $header, $rows);
}
/**