function theme_emvideo_handler_field_duration in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/includes/views/emvideo.views.inc \theme_emvideo_handler_field_duration()
- 6.2 contrib/emvideo/includes/views/emvideo.views.inc \theme_emvideo_handler_field_duration()
2 theme calls to theme_emvideo_handler_field_duration()
- emvideo_handler_field_duration::render in contrib/
emvideo/ includes/ views/ handlers/ emvideo_handler_field_duration.inc - emvideo_handler_field_duration::render_provider in contrib/
emvideo/ includes/ views/ handlers/ emvideo_handler_field_duration.inc
File
- contrib/
emvideo/ includes/ views/ emvideo.views.inc, line 73 - Interface between emfield.module and views.module.
Code
function theme_emvideo_handler_field_duration($item, $field, $node, $values, $format) {
$output = '';
if (!empty($item)) {
$duration = $item['duration'];
switch ($format) {
case 'duration_time':
$output = emvideo_seconds_to_time($duration);
break;
case 'duration_seconds':
$output = check_plain($duration);
break;
}
}
return $output;
}