_statistics_column_width

Versions
4.6
_statistics_column_width($column, $width = 35)

It is possible to adjust the width of columns generated by the statistics module.

Code

modules/statistics.module, line 470

<?php
function _statistics_column_width($column, $width = 35) {
  return (strlen($column) > $width ? substr($column, 0, $width) . '...' : $column);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.