summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index db54ab49c..e40e16fd9 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -114,19 +114,12 @@ function statistics_permission() {
*/
function statistics_node_view($node, $view_mode) {
if ($view_mode != 'rss') {
- $links = array();
if (user_access('view post access counter')) {
$statistics = statistics_get($node->nid);
if ($statistics) {
- $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads');
+ $node->content['links']['#links']['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads');
}
}
-
- $node->content['links']['statistics'] = array(
- '#theme' => 'links__statistics_node',
- '#links' => $links,
- '#attributes' => array('class' => array('links', 'inline')),
- );
}
}