You are here

function scald_youtube_wysiwyg_plugin in Scald YouTube 7

Implements hook_wysiwyg_plugin().

File

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

Code

function scald_youtube_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'ckeditor':
      return array(
        'scald_youtube_defer_plugin' => array(
          'path' => drupal_get_path('module', 'scald_youtube') . '/scald_youtube_defer_plugin/',
          'buttons' => array(
            'scald_youtube_defer_button' => t('Defer Youtube videos'),
          ),
          'load' => TRUE,
        ),
      );
  }
}