You are here

function onepixelout_swftools_methods in SWF Tools 5

Same name and namespace in other branches
  1. 6 onepixelout/onepixelout.module \onepixelout_swftools_methods()
  2. 6.2 onepixelout/onepixelout.module \onepixelout_swftools_methods()

Implementation of swftools_methods hook Report methods back to SWF Tools

File

onepixelout/onepixelout.module, line 20

Code

function onepixelout_swftools_methods() {
  $methods = array();
  $media_player = array(
    'name' => ONEPIXELOUT,
    'module' => 'onepixelout',
    'file' => 'soundFile',
    // Define which flashvar to assign a 'file to play' variable.
    'version' => '7',
    'shared_file' => '1pixelout/player.swf',
    'title' => t('1 Pixel Out MP3 Player'),
  );

  // Onepixelout support various actions with the same player and info.
  $methods[SWFTOOLS_MP3_DISPLAY][ONEPIXELOUT] = $media_player;
  return $methods;
}