statistics_link
Definition
statistics_link($type, $node = NULL, $teaser = FALSE)
modules/statistics/statistics.module, line 77
Description
Implementation of hook_link().
Code
<?php
function statistics_link($type, $node = NULL, $teaser = FALSE) {
global $id;
$links = array();
if ($type != 'comment' && 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');
}
}
return $links;
}
?> 