function wijering_swftools_methods in SWF Tools 5
Same name and namespace in other branches
- 6 wijering/wijering.module \wijering_swftools_methods()
- 6.2 wijering/wijering.module \wijering_swftools_methods()
Implementation of swftools_methods hook Report methods back to SWF Tools
File
- wijering/
wijering.module, line 21
Code
function wijering_swftools_methods() {
$methods = array();
$media_player = array(
'name' => WIJERING_MEDIAPLAYER,
'module' => 'wijering',
'file' => 'file',
// Define which flashvar to assign a 'file to play' variable.
'version' => '7',
'shared_file' => 'flash_media_player/mediaplayer.swf',
'title' => t('Flash Media Player - Jeroen Wijering'),
);
// Wijering support various actions with the same player and info.
$methods[SWFTOOLS_FLV_DISPLAY][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_FLV_DISPLAY_LIST][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_MP3_DISPLAY][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_MP3_DISPLAY_LIST][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_MEDIA_DISPLAY][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_MEDIA_DISPLAY_LIST][WIJERING_MEDIAPLAYER] = $media_player;
$methods[SWFTOOLS_IMAGE_DISPLAY_LIST][WIJERING_MEDIAPLAYER] = $media_player;
// And with rotator
$image_rotator = array(
'name' => WIJERING_IMAGEROTATOR,
'module' => 'wijering',
'file' => 'file',
// Define which flashvar to assign a 'file to play' variable.
'version' => '7',
'shared_file' => 'flash_image_rotator/imagerotator.swf',
'title' => t('Flash Image Rotator - Jeroen Wijering'),
);
$methods[SWFTOOLS_IMAGE_DISPLAY_LIST][WIJERING_IMAGEROTATOR] = $image_rotator;
return $methods;
}