function swf_list in SWF Tools 5
Same name and namespace in other branches
- 6 swftools.module \swf_list()
- 6.2 swftools.module \swf_list()
Output a playlist via a flash file. Note that $playlist_data has a specific format that will be documented later.
Parameters
$playlist_data:
Not the name of an xml file!
5 calls to swf_list()
- simpleviewer_swf_list in simpleviewer/
simpleviewer.module - Call swf_list(), enforcing the SimpleViewer, for a playlist array Parameters and calling are identical to swf_list()
- swftools_integrate_nodeapi in ./
swftools_integrate.module - wijering_imagerotator_swf_list in wijering/
wijering.module - Call swf(), enforcing the wijering media player, for a list of files (like a playlist) Parameters and calling are identical to swf_list()
- wijering_mediaplayer_swf_list in wijering/
wijering.module - Call swf(), enforcing the wijering media player, for a list of files (like a playlist) Parameters and calling are identical to swf_list()
- _swftools_filter_process_text in ./
swftools.module
File
- ./
swftools.module, line 124
Code
function swf_list($playlist_data, $params = SWFDEFAULT, $flashvars = SWFDEFAULT, $othervars = SWFDEFAULT, $methods = SWFDEFAULT) {
if (is_array($playlist_data)) {
if (!$methods) {
$methods = array();
}
$methods['action'] = $playlist_data['action'];
if (!$othervars) {
$othervars = array();
}
$othervars['playlist_data'] = $playlist_data;
if (isset($playlist_data['filename'])) {
$playlist = $playlist_data['filename'];
}
else {
$playlist = '';
}
return swf($playlist, $params, $flashvars, $othervars, $methods);
}
else {
// Need to verify the direct xml file method before permitting it.
}
}