function swftools_get_player in SWF Tools 6.2
Same name and namespace in other branches
- 5 swftools.module \swftools_get_player()
- 6.3 swftools.module \swftools_get_player()
- 6 swftools.module \swftools_get_player()
Identify the currently configured player for the specified action.
Parameters
$action: The SWF Tools action to be performed.
Return value
The name of the currently configured player for this action.
3 calls to swftools_get_player()
- swf in ./
swftools.module - Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>
- _swftools_admin_file_handling_option in ./
swftools.admin.inc - _swftools_status_players in ./
swftools.admin.status.inc - Generate a status report for the player modules and media defaults Called from swftools_status() and returns markup
File
- ./
swftools.module, line 670
Code
function swftools_get_player($action) {
switch ($action) {
case SWFTOOLS_FLV_DISPLAY:
return variable_get(SWFTOOLS_FLV_DISPLAY, GENERIC_FLV);
case SWFTOOLS_MP3_DISPLAY:
return variable_get(SWFTOOLS_MP3_DISPLAY, GENERIC_MP3);
case SWFTOOLS_SWF_DISPLAY_DIRECT:
return variable_get(SWFTOOLS_SWF_DISPLAY_DIRECT, SWFTOOLS_SWF);
// For all other media types the default is FALSE - no player configured
default:
return variable_get($action, FALSE);
}
}