function video_filter_wysiwyg_plugin in Video Filter 7.3
Same name and namespace in other branches
- 6.3 video_filter.module \video_filter_wysiwyg_plugin()
- 6.2 video_filter.module \video_filter_wysiwyg_plugin()
File
- ./
video_filter.module, line 677
Code
function video_filter_wysiwyg_plugin($editor, $version) {
_video_filter_add_settings('wysiwyg_' . $editor);
$plugins = array();
switch ($editor) {
case 'ckeditor':
$plugins['video_filter'] = array(
'path' => drupal_get_path('module', 'video_filter') . '/editors/ckeditor/',
'buttons' => array(
'video_filter' => t('Video filter'),
),
'url' => 'http://drupal.org/project/video_filter',
'load' => TRUE,
);
break;
case 'fckeditor':
$plugins['video_filter'] = array(
'path' => drupal_get_path('module', 'video_filter') . '/editors/fckeditor/',
'buttons' => array(
'video_filter' => t('Video filter'),
),
'url' => 'http://drupal.org/project/video_filter',
'load' => TRUE,
);
break;
case 'tinymce':
$plugins['video_filter'] = array(
'path' => drupal_get_path('module', 'video_filter') . '/editors/tinymce',
'filename' => 'editor_plugin.js',
'buttons' => array(
'video_filter' => t('Video filter'),
),
'url' => 'http://drupal.org/project/video_filter',
'load' => TRUE,
);
break;
}
return $plugins;
}