From a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 24 Apr 2005 16:34:36 +0000 Subject: - Patch 20910 by chx: centralize print theme page. --- modules/statistics/statistics.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/statistics') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 27fd98e40..6161b6cb9 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -154,7 +154,7 @@ function statistics_access_log($aid) { $output .= ' '. t('User') .''. format_name($access) .''; $output .= ' '. t('Hostname') ."$access->hostname"; $output .= ''; - 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); } /** -- cgit v1.2.3