You are here

function scald_youtube_element_info_alter in Scald YouTube 7

Implements hook_element_info_alter().

File

./scald_youtube.module, line 784
Defines a YouTube provider for Scald.

Code

function scald_youtube_element_info_alter(&$types) {
  $defer_enable = variable_get('scald_youtube_defer_videos', FALSE);
  if ($defer_enable) {

    // Add the path of the script.
    $types['text_format']['#pre_render'][] = 'scald_youtube_add_defer_video_plugin_js';
  }
}