function _wijering4_settings in SWF Tools 5
Same name and namespace in other branches
- 6 wijering4/wijering4.module \_wijering4_settings()
- 6.2 wijering4/wijering4.module \_wijering4_settings()
These are the default settings as they are stored in the database and displayed on the settings page.
2 calls to _wijering4_settings()
- _wijering4_admin_form in wijering4/
wijering4.admin.inc - _wijering4_flashvars in wijering4/
wijering4.module - This function is called from wijering4_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…
File
- wijering4/
wijering4.module, line 80
Code
function _wijering4_settings($player) {
switch ($player) {
case WIJERING4_MEDIAPLAYER:
// Define the settings list.
$defaults['boolean'] = array(
'shuffle' => 'default',
'fullscreen' => 'default',
'autostart' => 'default',
'quality' => 'default',
);
$defaults['color'] = array(
'backcolor' => '',
'frontcolor' => '',
'lightcolor' => '',
'screencolor' => '',
);
$defaults['url'] = array(
'logo' => '',
'captions' => '',
'link' => '',
'streamscript' => '',
'skin' => '',
);
$defaults['integer'] = array(
'width' => '400',
'height' => '320',
'playlistsize' => '',
'bufferlength' => '',
'volume' => '',
);
$defaults['other'] = array(
'type' => 'default',
'repeat' => 'default',
'linktarget' => 'default',
'stretching' => 'default',
'playlist' => 'default',
'controlbar' => 'default',
'displayclick' => 'default',
);
$saved_settings = variable_get('swftools_' . WIJERING4_MEDIAPLAYER, array());
break;
}
// Overwrite initialised variables with those that might be already saved.
foreach ($defaults as $category => $vars) {
foreach ($vars as $key => $setting) {
if (isset($saved_settings[$key])) {
$defaults[$category][$key] = $saved_settings[$key];
}
}
}
return $defaults;
}