You are here

function _video_embed_field_show_video in Video Embed Field 7.2

Renders a video for an AJAX call.

Parameters

string $hash: The video hash.

Return value

Null Null because prints an AJAX output.

1 string reference to '_video_embed_field_show_video'
video_embed_field_menu in ./video_embed_field.module
Implements hook_menu().

File

./video_embed_field.module, line 668
Provides a simple field for easily embedding videos from youtube or vimeo

Code

function _video_embed_field_show_video($hash) {
  $data = _video_embed_field_load_video($hash);
  $video = array(
    '#theme' => 'video_embed_field_embed_code',
    '#style' => $data['video_style'],
    '#url' => $data['video_url'],
  );
  print drupal_render($video);
  return NULL;
}