You are here

function ckeditor_media_wysiwyg_plugin in CKEditor Media Browser 7.2

Implements hook_wysiwyg_plugin().

File

./ckeditor_media.module, line 54

Code

function ckeditor_media_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'ckeditor':
      return array(
        'mediaBrowser' => array(
          'buttons' => array(
            'mediaBrowser' => t('CKEditor Media Browser'),
          ),
          // The full path to the CKEditor plugin directory, trailing slash excluded.
          'path' => drupal_get_path('module', 'ckeditor_media') . '/plugins/mediaBrowser',
          'url' => 'http://drupal.org/project/ckeditor_media',
          'filename' => 'plugin.js',
          'load' => TRUE,
        ),
      );
      break;
  }
}