'guba', 'name' => t('GUBA'), 'url' => EMVIDEO_GUBA_MAIN_URL, 'settings_description' => t('These settings specifically affect videos displayed from GUBA.', array('@guba' => EMVIDEO_GUBA_MAIN_URL)), 'supported_features' => $features, ); } function emvideo_guba_request($method, $args = array(), $cached = TRUE) { //$args = array('docid' => $embed); return module_invoke('emfield', 'request_xml', 'guba', "http://www.guba.com/rest/video/". $method ."/details", $args, $cacheable); } function emvideo_guba_extract($embed = '') { return array( '@http://www\.guba\.com/watch/([^"\?]+)@i', '@http://www\.guba\.com/f/root\.swf\?video_url=http://free\.guba\.com/uploaditem/([^"\?/]*)@i', ); } function emvideo_guba_embedded_link($video_code) { return 'http://www.guba.com/watch/'. $video_code; } function theme_emvideo_guba_flash($embed, $width, $height, $autoplay) { $autoplay = $autoplay ? '&autoPlay=TRUE' : '&autoPlay=FALSE'; $output .= ''; return $output; } function emvideo_guba_thumbnail($field, $item, $formatter, $node, $width, $height) { $thumbid = $item['value']; $thm = 'http://img.guba.com/public/video/f/58/'. $thumbid .'-m.jpg'; return $thm; } function emvideo_guba_video($embed, $width, $height, $field, $item, $node, $autoplay) { $output = theme('emvideo_guba_flash', $embed, $width, $height, $autoplay); return $output; } function emvideo_guba_preview($embed, $width, $height, $field, $item, $node, $autoplay) { $output = theme('emvideo_guba_flash', $embed, $width, $height, $autoplay); return $output; } function emvideo_guba_emfield_subtheme() { return array( 'emvideo_guba_flash' => array( 'arguments' => array('embed' => NULL, 'width' => NULL, 'height' => NULL, 'autoplay' => NULL), 'file' => 'providers/guba.inc' ) ); }