function views_handler_field_time_interval::render
Same name in other branches
- 7.x-3.x handlers/views_handler_field_time_interval.inc \views_handler_field_time_interval::render()
Overrides views_handler_field::render
File
-
handlers/
views_handler_field_time_interval.inc, line 27
Class
- views_handler_field_time_interval
- A handler to provide proper displays for time intervals.
Code
function render($values) {
$value = $values->{$this->field_alias};
return format_interval($value, isset($this->options['granularity']) ? $this->options['granularity'] : 2);
}