? video_filter.css Index: video_filter.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v retrieving revision 1.12.2.12 diff -u -p -r1.12.2.12 video_filter.module --- video_filter.module 5 Mar 2010 09:32:24 -0000 1.12.2.12 +++ video_filter.module 16 Mar 2010 21:16:00 -0000 @@ -83,7 +83,7 @@ function video_filter_process($text, $fo $codecs = module_invoke_all('codec_info'); // Find codec - foreach ($codecs as $codec) { + foreach ($codecs AS $codec_name => $codec) { if (!is_array($codec['regexp'])) { $codec['regexp'] = array($codec['regexp']); } @@ -94,6 +94,7 @@ function video_filter_process($text, $fo $video['codec'] = $codec; $video['codec']['delta'] = $delta; $video['codec']['matches'] = $matches; + $video['codec']['codec_name'] = $codec_name; // used in theme function break 2; } } @@ -208,14 +209,28 @@ function video_filter_flash($video, $par * @ingroup themeable */ function theme_video_filter_flash($video, $params) { + drupal_add_css(drupal_get_path('module', 'video_filter') . '/video_filter.css'); $output = ''; - $output .= ''."\n"; $defaults = array( @@ -269,7 +284,7 @@ function video_filter_wysiwyg_plugin($ed switch ($editor) { case 'tinymce': if ($version > 3) { - drupal_add_css(drupal_get_path('module', 'video_filter') . '/wysiwyg/tinymce/video_filter.css'); + 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',