_statistics_link
function _statistics_link
_statistics_link($path, $width = 35)
Generates a link to a path, truncating the displayed text to a given width.
Parameters
$path: The path to generate the link for.
$width: The width to set the displayed text of the path.
Return value
A string as a link, truncated to the width, linked to the given $path.
File
- modules/statistics/statistics.module, line 403
- Logs and displays access statistics for a 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); }
© 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_link/7.x