You are here

function _statistics_link in Drupal 5

Same name and namespace in other branches
  1. 4 modules/statistics.module \_statistics_link()
  2. 6 modules/statistics/statistics.module \_statistics_link()
  3. 7 modules/statistics/statistics.module \_statistics_link()

It is possible to adjust the width of columns generated by the statistics module.

3 calls to _statistics_link()
statistics_node_tracker in modules/statistics/statistics.module
statistics_top_referrers in modules/statistics/statistics.module
Menu callback; presents the "referrer" page.
_statistics_format_item in modules/statistics/statistics.module

File

modules/statistics/statistics.module, line 512
Logs access statistics for your site.

Code

function _statistics_link($path, $width = 35) {
  $title = drupal_get_path_alias($path);
  $title = truncate_utf8($title, $width, FALSE, TRUE);
  return l($title, $path);
}