You are here

function swfobject2_swftools_methods in SWF Tools 6

Same name and namespace in other branches
  1. 5 swfobject2/swfobject2.module \swfobject2_swftools_methods()
  2. 6.2 swfobject2/swfobject2.module \swfobject2_swftools_methods()

SWF Tools - SWFObject2

Enables the use of swfobject.js which provides image replacement for Flash content. swfobject.js must be downloaded separately. (Add the contents of the zip file to swftools/shared/swfobject2) This module produces standards compliant mark that will pass W3C validation

File

swfobject2/swfobject2.module, line 14

Code

function swfobject2_swftools_methods() {
  $methods = array();
  $methods[SWFTOOLS_EMBED_METHOD]['swfobject2_replace'] = array(
    'name' => 'swfobject2_replace',
    'module' => 'swfobject2',
    'shared_file' => 'swfobject2/swfobject.js',
    'title' => t('SWFObject 2 - JavaScript'),
    'download' => 'http://code.google.com/p/swfobject/',
  );
  return $methods;
}