You are here

function video_filter_wysiwyg_plugin in Video Filter 6.2

Same name and namespace in other branches
  1. 6.3 video_filter.module \video_filter_wysiwyg_plugin()
  2. 7.3 video_filter.module \video_filter_wysiwyg_plugin()

Implementation of hook_wysiwyg_plugin().

File

./video_filter.module, line 313

Code

function video_filter_wysiwyg_plugin($editor, $version) {
  switch ($editor) {
    case 'tinymce':
      if ($version > 3) {
        drupal_add_css(drupal_get_path('module', 'video_filter') . '/video_filter.css');
        return array(
          'videofilter' => array(
            'path' => drupal_get_path('module', 'video_filter') . '/wysiwyg/tinymce/editor_plugin.js',
            'buttons' => array(
              'videofilter' => t('Video Filter'),
            ),
            'url' => 'http://drupal.org/project/video_filter',
            'load' => TRUE,
          ),
        );
      }
      break;
  }
}