You are here

function swftools_update_6019 in SWF Tools 6.3

Accommodates FlowPlayer3 playlists.

File

./swftools.install, line 929
Install, update and uninstall functions for the SWF Tools module.

Code

function swftools_update_6019() {

  // Initialise a results array
  $ret = array();

  // Add defaults for playlists if there are existing settings
  if ($settings = variable_get('swftools_flowplayer3', FALSE)) {
    $settings += array(
      'playlists' => array(
        'playlist' => 0,
        'scrollable' => 0,
        'style' => 'petrol',
        'images' => 1,
        'fillemptyimages' => 0,
      ),
    );
    variable_set('swftools_flowplayer3', $settings);
    $ret[] = array(
      'success' => TRUE,
      'query' => 'Playlist defaults added to FlowPlayer 3.',
    );
  }

  // Return results
  return $ret;
}