function _statistics_format_item

Formats an item for display, including both the item title and the link.

Parameters

string $title: The text to link to a path; will be truncated to a maximum width of 35.

string $path: The path to link to; will default to '/'.

Return value

string An HTML string with $title linked to the $path.

File

drupal/core/modules/statistics/statistics.module, line 193
Logs and displays content statistics for a site.

Code

function _statistics_format_item($title, $path) {
  $path = $path ? $path : '/';
  $output = $title ? "{$title}<br />" : '';
  $output .= _statistics_link($path);
  return $output;
}