function _statistics_format_item

_statistics_format_item($title, $path)

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.

File

modules/statistics/statistics.module, line 420
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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!statistics!statistics.module/function/_statistics_format_item/7.x