_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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部