function emvideo_vimeo_duration in Media: Vimeo 6
hook emvideo_PROVIDER_duration($item) Returns the duration of the video in seconds.
Parameters
$item: The video item itself, which needs the $data array. @return The duration of the video in seconds.
File
- includes/
providers/ emvideo/ vimeo.inc, line 175 - media_vimeo/includes/providers/vimeo.inc Provide support for the Vimeo provider to the emfield.module.
Code
function emvideo_vimeo_duration($item) {
return media_vimeo_duration($item['value']);
}