You are here

function timefield_handler_field_timefield_duration::render in Timefield 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/timefield_handler_field_timefield_duration.inc, line 45
Contains the duration field handler.

Class

timefield_handler_field_timefield_duration
@file Contains the duration field handler.

Code

function render($values) {
  $value = $values->{$this->name_alias};
  if (!empty($value) && !empty($this->options['duration_format'])) {
    $value = timefield_integer_to_duration($value, $this->options['duration_format']);
  }
  return $value;
}