You are here

video_handler_field_video_duration.inc in Video 7.2

File containing class video_handler_field_video_duration

File

views/video_handler_field_video_duration.inc
View source
<?php

/**
 * @file
 * File containing class video_handler_field_video_duration
 */

/**
 * Views field handler to show video duration.
 */
class video_handler_field_video_duration extends views_handler_field {
  function render($values) {
    if (!empty($values->video_queue_duration)) {
      return gmdate("H:i:s", $values->video_queue_duration);
    }
    if (!empty($values->field_field_video[0]['raw']['duration'])) {
      return gmdate("H:i:s", $values->field_field_video[0]['raw']['duration']);
    }
    return NULL;
  }

}

Classes

Namesort descending Description
video_handler_field_video_duration Views field handler to show video duration.