function theme_video_embed_field_colorbox_code in Video Embed Field 7.2
Returns image style image with a link to an embedded video in colorbox.
Parameters
array $variables: An associative array containing:
- image_url: The image URL.
- image_style: The image style to use.
- image_alt: The image ALT attribute.
- video_url: The video URL.
- video_style: The video style to use.
- video_data: An array of data about the video.
Return value
string The themed output.
1 theme call to theme_video_embed_field_colorbox_code()
File
- ./
video_embed_field.module, line 467 - Provides a simple field for easily embedding videos from youtube or vimeo
Code
function theme_video_embed_field_colorbox_code($variables) {
$path = video_embed_field_get_ajax_url($variables['video_url'], $variables['video_style']);
$image = array(
'#theme' => 'image_formatter',
'#item' => array(
'uri' => $variables['image_url'],
'alt' => $variables['image_alt'],
),
'#image_style' => $variables['image_style'],
'#path' => $path,
);
return drupal_render($image);
}