function template_preprocess_media_vimeo_flash in Media: Vimeo 6
The embedded flash displaying the Vimeo video.
File
- themes/
media_vimeo.theme.inc, line 29 - media_vimeo/themes/media_vimeo.theme.inc Theme functions for Media: Vimeo.
Code
function template_preprocess_media_vimeo_flash(&$variables) {
_media_vimeo_options($variables);
if ($variables['video_code']) {
$variables['clip_id'] = $variables['video_code'];
$variables['query'] = isset($variables['query']) ? $variables['query'] : array(
'clip_id' => $variables['video_code'],
'server' => 'www.vimeo.com',
);
foreach (array(
'fullscreen',
'show_title',
'show_byline',
'show_portrait',
'color',
'autoplay',
) as $key) {
if (isset($variables[$key])) {
$variables['query'][$key] = $variables[$key];
}
}
$variables['data'] = url('http://www.vimeo.com/moogaloop.swf', array(
'query' => $variables['query'],
));
}
}