You are here

function views_handler_field_time_interval::render in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 handlers/views_handler_field_time_interval.inc \views_handler_field_time_interval::render()

Render the field.

Parameters

$values: The values retrieved from the database.

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);
}