diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-29 06:39:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-29 06:39:35 +0000 |
commit | 715a2d655f70675f3bec8a320a864865d6d02d47 (patch) | |
tree | fffff07032e77f118a4290fc62f290d91cf831f0 /modules/statistics | |
parent | 40c8986ac74b0ab15f0571c24052d1be06bd2ccb (diff) | |
download | brdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.gz brdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.bz2 |
- Patch #511748 by moshe weitzman: pushing rending to later in the cycle so there is more room for customization.
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.admin.inc | 46 | ||||
-rw-r--r-- | modules/statistics/statistics.pages.inc | 20 |
2 files changed, 47 insertions, 19 deletions
diff --git a/modules/statistics/statistics.admin.inc b/modules/statistics/statistics.admin.inc index 0e4cff77e..80ef997cf 100644 --- a/modules/statistics/statistics.admin.inc +++ b/modules/statistics/statistics.admin.inc @@ -39,9 +39,13 @@ function statistics_recent_hits() { $rows[] = array(array('data' => t('No statistics available.'), 'colspan' => 4)); } - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + ); + $build['statistics_pager'] = array('#theme' => 'pager'); + return $build; } /** @@ -83,9 +87,13 @@ 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)))), PASS_THROUGH); - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_top_pages_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + ); + $build['statistics_top_pages_pager'] = array('#theme' => 'pager'); + return $build; } /** @@ -133,9 +141,13 @@ function statistics_top_visitors() { } drupal_set_title(t('Top visitors in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))), PASS_THROUGH); - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_top_visitors_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + ); + $build['statistics_top_visitors_pager'] = array('#theme' => 'pager'); + return $build; } /** @@ -178,9 +190,13 @@ function statistics_top_referrers() { $rows[] = array(array('data' => t('No statistics available.'), 'colspan' => 3)); } - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_top_referrers_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + ); + $build['statistics_top_referrers_pager'] = array('#theme' => 'pager'); + return $build; } /** @@ -216,7 +232,11 @@ function statistics_access_log($aid) { check_plain($access->hostname) ); - return theme('table', array(), $rows); + $build['statistics_table'] = array( + '#theme' => 'table', + '#rows' => $rows, + ); + return $build; } else { drupal_not_found(); diff --git a/modules/statistics/statistics.pages.inc b/modules/statistics/statistics.pages.inc index e0c3b5ac3..d51da7456 100644 --- a/modules/statistics/statistics.pages.inc +++ b/modules/statistics/statistics.pages.inc @@ -43,9 +43,13 @@ function statistics_node_tracker() { } drupal_set_title($node->title); - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows + ); + $build['statistics_pager'] = array('#theme' => 'pager'); + return $build; } else { drupal_not_found(); @@ -80,9 +84,13 @@ function statistics_user_tracker() { } drupal_set_title($account->name); - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); - return $output; + $build['statistics_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows + ); + $build['statistics_pager'] = array('#theme' => 'pager'); + return $build; } else { drupal_not_found(); |