Full ELMS Learning Network documentation
function video_filter_wysiwyg_plugin
cis7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
cle7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
elmsmedia7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
icor7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
meedjum_blog7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
mooc7 video_filter.module | video_filter_wysiwyg_plugin($editor, $version) |
File
- sites/
all/ modules/ ulmus/ video_filter/ video_filter.module, line 527 - Video filter is a highly flexible and easy extendable filter module to embed any type of video in your site using a simple tag.
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;
}