You are here

function swftools_genericplayers_swftools_methods in SWF Tools 6.3

Implementation of hook_swftools_methods().

1 call to swftools_genericplayers_swftools_methods()
swftools_swftools_methods in ./swftools.module
Implementation of hook_swftools_methods().

File

includes/swftools.genericplayers.inc, line 11
Enables SWF Tools support for built-in generic players.

Code

function swftools_genericplayers_swftools_methods() {

  // Define the parameters of the generic mp3 player
  $mp3_player = array(
    'module' => 'swftools',
    'title' => t('Generic MP3 player'),
    'height' => 31,
    'width' => 30,
    'library' => drupal_get_path('module', 'swftools') . '/swf/generic_mp3.swf',
  );

  // Attach this player to the methods array as an audio handler with the name generic_mp3
  $methods['audio']['generic_mp3'] = $mp3_player;

  // Define the parameters of the generic flv player
  $flv_player = array(
    'module' => 'swftools',
    'title' => t('Generic FLV player'),
    'height' => 275,
    'width' => 320,
    'library' => drupal_get_path('module', 'swftools') . '/swf/generic_flv.swf',
  );

  // Attach this player to the methods array as a video handler with the name generic_flv
  $methods['video']['generic_flv'] = $flv_player;

  // Return the two methods
  return $methods;
}