You are here

function _swftools_onepixelout_settings in SWF Tools 6.3

Returns an array of default settings for the player.

2 calls to _swftools_onepixelout_settings()
swftools_onepixelout_admin_form in onepixelout/swftools_onepixelout.admin.inc
@file Configuration settings for OnePixelOut.
_swftools_onepixelout_flashvars in onepixelout/swftools_onepixelout.module
Returns an array of flashvar defaults for the player.

File

onepixelout/swftools_onepixelout.module, line 51
Enables SWF Tools support for the original OnePixelOut player.

Code

function _swftools_onepixelout_settings() {

  // Initialise defaults that apply if no settings were stored
  $defaults = array(
    'height' => 24,
    'width' => 290,
    'autostart' => 'no',
    'loop' => 'no',
    'bg' => '',
    'leftbg' => '',
    'rightbg' => '',
    'rightbghover' => '',
    'lefticon' => '',
    'righticon' => '',
    'righticonhover' => '',
    'text' => '',
    'slider' => '',
    'loader' => '',
    'track' => '',
    'border' => '',
  );

  // Retrieve settings from the database if available
  $saved = variable_get('swftools_onepixelout', $defaults);

  // Return result
  return $saved;
}