You are here

function quiz_views_handler_field_time::render in Quiz 7

Same name and namespace in other branches
  1. 8.4 includes/views/handlers/quiz_views_handler_field_time.inc \quiz_views_handler_field_time::render()
  2. 6.4 includes/views/handlers/quiz_views_handler_field_time.inc \quiz_views_handler_field_time::render()
  3. 7.6 includes/views/handlers/quiz_views_handler_field_time.inc \quiz_views_handler_field_time::render()
  4. 7.4 includes/views/handlers/quiz_views_handler_field_time.inc \quiz_views_handler_field_time::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

includes/views/handlers/quiz_views_handler_field_time.inc, line 8
A handler to provide proper displays for dates.

Class

quiz_views_handler_field_time
@file A handler to provide proper displays for dates.

Code

function render($values) {
  $value = $values->{$this->field_alias};
  return _quiz_format_duration($value);
}