You are here

function swftools_swftools_methods in SWF Tools 6.2

Same name and namespace in other branches
  1. 6.3 swftools.module \swftools_swftools_methods()

Report the methods that are supported by the SWF Tools module.

Return value

An array of methods and players provided by the default SWF Tools installation.

File

./swftools.module, line 1684

Code

function swftools_swftools_methods() {

  // Initialise array
  $methods = array();

  // Module implements a default plain HTML embedding method called 'direct'
  $methods[SWFTOOLS_EMBED_METHOD][SWFTOOLS_NOJAVASCRIPT] = array(
    'name' => SWFTOOLS_NOJAVASCRIPT,
    'module' => 'swftools',
    'shared_file' => '',
    'title' => t('Direct embedding - do not use JavaScript replacement'),
  );

  // Module implements swf embedding
  $methods[SWFTOOLS_SWF_DISPLAY_DIRECT][SWFTOOLS_SWF] = array(
    'name' => SWFTOOLS_SWF,
    'module' => 'swftools',
    'shared_file' => '',
    'title' => t('Use SWF file directly, no streaming through another SWF.'),
  );

  // Module implements custom embedding of an swf
  $methods[SWFTOOLS_SWF_DISPLAY_DIRECT][SWFTOOLS_CUSTOM] = array(
    'name' => SWFTOOLS_CUSTOM,
    'module' => 'swftools',
    'shared_file' => '',
    // Assigned later.
    'title' => t('Use custom SWF file.'),
  );

  // Add in the methods from genericplayers.module
  $methods = array_merge($methods, genericplayers_swftools_methods());

  // Return the methods that are native to SWF Tools
  return $methods;
}