function _statistics_format_item in Drupal 7
Same name and namespace in other branches
- 4 modules/statistics.module \_statistics_format_item()
- 5 modules/statistics/statistics.module \_statistics_format_item()
- 6 modules/statistics/statistics.module \_statistics_format_item()
Formats an item for display, including both the item title and the link.
Parameters
$title: The text to link to a path; will be truncated to a maximum width of 35.
$path: The path to link to; will default to '/'.
Return value
An HTML string with $title linked to the $path.
3 calls to _statistics_format_item()
- statistics_recent_hits in modules/
statistics/ statistics.admin.inc - Page callback: Displays the "recent hits" page.
- statistics_top_pages in modules/
statistics/ statistics.admin.inc - Page callback: Displays statistics for the "top pages" (most accesses).
- statistics_user_tracker in modules/
statistics/ statistics.pages.inc - Page callback: Displays statistics for a user.
File
- modules/
statistics/ statistics.module, line 418 - Logs and displays access statistics for a site.
Code
function _statistics_format_item($title, $path) {
$path = $path ? $path : '/';
$output = $title ? "{$title}<br />" : '';
$output .= _statistics_link($path);
return $output;
}