function _swftools_flowplayer_flashvars in SWF Tools 6.3
This function is called from flowplayer_swftools_flashvars() which is called from swf() It will return the default flashvar configuration, just prior to any overrides passed into swf(). We start with the settings defined on admin/swf/wijering which are returned by _swftools_flowplayer_settings(). Then we prepare these values for output to html (eg. '1' become 'true') and we unset undefined flashvars to prevent their output.
1 call to _swftools_flowplayer_flashvars()
- swftools_flowplayer_swftools_preprocess_flowplayer in flowplayer/
swftools_flowplayer.module - Implementation of hook_swftools_preprocess_[player]().
File
- flowplayer/
swftools_flowplayer.module, line 160 - Enables SWF Tools support for Flowplayer.
Code
function _swftools_flowplayer_flashvars() {
// Cache this
static $flashvars = array();
// If defaults not already retrieved then fetch now
if (!count($flashvars)) {
// Get saved settings for this method.
$defaults = _swftools_flowplayer_settings();
// Unset values defined as default, and set booleans properly
foreach ($defaults as $key => $value) {
if (!$value || $value == 'default') {
unset($defaults[$key]);
}
else {
if (in_array($key, array(
'usePlayOverlay',
'hideControls',
'showFullScreenButton',
'showPlayListButtons',
'autoPlay',
'loop',
))) {
$defaults[$key] = _swftools_tf($value);
}
}
}
}
// Returning resulting defaults
return $defaults;
}