function swftools_update_6020 in SWF Tools 6.3
Accommodates populating playlists with a default image when none is given with JW Player 4.
File
- ./
swftools.install, line 958 - Install, update and uninstall functions for the SWF Tools module.
Code
function swftools_update_6020() {
// Initialise a results array
$ret = array();
// Add default for filling playlist with an empty image when none is provided
if ($settings = variable_get('swftools_jwplayer4', FALSE)) {
$settings += array(
'appearance' => array(
'fillemptyimages' => 0,
),
);
variable_set('swftools_jwplayer4', $settings);
$ret[] = array(
'success' => TRUE,
'query' => 'Playlist defaults added to JW Player 4.',
);
}
// Return results
return $ret;
}