You are here

function better_statistics_views_pre_render in Better Statistics 7

Implements hook_views_pre_render().

File

views/better_statistics.views.inc, line 105
Views hooks for the Better Statistics module.

Code

function better_statistics_views_pre_render(&$view) {

  // Replace %accesslog_interval with a properly formatted interval in titles.
  $title = $view
    ->get_title();
  $interval = format_interval(variable_get('statistics_flush_accesslog_timer', 259200));
  $view
    ->set_title(format_string($title, array(
    '%accesslog_interval' => $interval,
  )));
}