--- inline.module 2008-01-17 08:09:02.000000000 +1100 +++ inline.swf.module 2008-04-10 17:39:17.000000000 +1000 @@ -308,7 +308,19 @@ function theme_inline_img($file, $field) // Prepare link text with inline title, file description or filename. $title = (!empty($file->title) ? $file->title : (!empty($file->description) ? $file->description : $file->filename)); $inline_preset = $field == 'teaser' ? 'inline_teaser_preset' : 'inline_full_preset'; - + + // If the file is flash, use SWFTools to add the file + if (strstr($file->filemime, 'flash')) { + $info = image_get_info($file->filepath); + $params = array(); + if ($info) { + $params['height'] = $info['height']; + $params['width'] = $info['width']; + } + $image = swf($file->filename, $params); + } + else { + if (module_exists('imagecache') && variable_get($inline_preset, '') != '') { $image = theme('imagecache', variable_get($inline_preset, ''), @@ -327,6 +339,8 @@ function theme_inline_img($file, $field) ); } + } + if (variable_get('inline_link_img', '1')) { $attributes = array( 'class' => 'inline-image-link', @@ -515,7 +529,7 @@ function _inline_replace_numbers($node, * TRUE in case an image tag should be generated. */ function _inline_decide_img_tag($file) { - $inlined = array('jpg', 'jpeg', 'pjpeg', 'gif', 'png'); + $inlined = array('jpg', 'jpeg', 'pjpeg', 'gif', 'png', 'x-shockwave-flash'); $mime = array_pop(explode('/', $file->filemime)); if (in_array($mime, $inlined)) { if (module_exists('imagecache')) {