You are here

function wysiwyg_mediaembed_wysiwyg_plugin in Wysiwyg Media Embed 7

Same name and namespace in other branches
  1. 6 wysiwyg_mediaembed.module \wysiwyg_mediaembed_wysiwyg_plugin()

Implementation of hook_wysiwyg_plugin().

File

./wysiwyg_mediaembed.module, line 6

Code

function wysiwyg_mediaembed_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'ckeditor':
      return array(
        'mediaembed' => array(
          'buttons' => array(
            'MediaEmbed' => 'Media Embed',
          ),
          'path' => drupal_get_path('module', 'wysiwyg_mediaembed') . '/plugin/mediaembed/',
          'url' => 'http://ckeditor.com/addon/mediaembed',
          'load' => TRUE,
        ),
      );
  }
}