You are here

function genericplayers_swftools_methods in SWF Tools 5

Same name and namespace in other branches
  1. 6 genericplayers.module \genericplayers_swftools_methods()
  2. 6.2 genericplayers.module \genericplayers_swftools_methods()
1 call to genericplayers_swftools_methods()
swftools_methods_available in ./swftools.module
Collect information from all modules about the Flash players, tools and scripts available for various actions.

File

./genericplayers.module, line 20

Code

function genericplayers_swftools_methods() {
  $methods = array();
  $mp3_player = array(
    'name' => GENERIC_MP3,
    'module' => 'genericplayers',
    'file' => 'file_url',
    // Define which flashvar to assign a 'file to play' variable.
    'shared_file' => 'generic/generic_mp3.swf',
    'title' => t('Generic MP3 Player'),
  );
  $methods[SWFTOOLS_MP3_DISPLAY][GENERIC_MP3] = $mp3_player;
  $flv_player = array(
    'name' => GENERIC_FLV,
    'module' => 'genericplayers',
    'file' => 'file_url',
    // Define which flashvar to assign a 'file to play' variable.
    'shared_file' => 'generic/generic_flv.swf',
    'title' => t('Generic FLV Player'),
  );
  $methods[SWFTOOLS_FLV_DISPLAY][GENERIC_FLV] = $flv_player;
  return $methods;
}