diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-14 21:04:45 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-14 21:04:45 +0000 |
commit | ab21e07bbd3ac303495a9cce99862d84bba0893e (patch) | |
tree | 7612531b2af662faeb33e6d46564a543c2cbbd78 /modules/statistics | |
parent | f65a7fae273eb909cdcb366e0c23c6b4dab7e608 (diff) | |
download | brdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.gz brdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.bz2 |
#878092 follow-up by sun, David_Rothstein: Fixed Regression from D7 alpha: themes are unable to render one group of node links separately from another.
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 0e093fe5f..39f7e5aef 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -117,7 +117,12 @@ function statistics_node_view($node, $view_mode) { if (user_access('view post access counter')) { $statistics = statistics_get($node->nid); if ($statistics) { - $node->content['links']['#links']['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + $node->content['links']['statistics'] = array( + '#theme' => 'links__node__statistics', + '#links' => $links, + '#attributes' => array('class' => array('links', 'inline')), + ); } } } |