You are here

function _swftools_params in SWF Tools 5

Same name and namespace in other branches
  1. 6.3 swftools.module \_swftools_params()
  2. 6 swftools.module \_swftools_params()
  3. 6.2 swftools.module \_swftools_params()

These are the default params.

1 call to _swftools_params()
swf in ./swftools.module
Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>

File

./swftools.module, line 717

Code

function _swftools_params() {
  $swf_options = _swftools_options();
  $defaults = array(
    'wmode' => variable_get('swftools_params_wmode', 'opaque'),
    'bgcolor' => variable_get('swftools_params_bgcolor', '#FFFFFF'),
    'menu' => variable_get('swftools_params_menu', FALSE),
    'play' => variable_get('swftools_params_play', TRUE),
    'loop' => variable_get('swftools_params_loop', FALSE),
    'quality' => variable_get('swftools_params_quality', 'autohigh'),
    'align' => variable_get('swftools_params_align', 'l'),
    'salign' => variable_get('swftools_params_salign', 'tl'),
    'scale' => variable_get('swftools_params_scale', 'showall'),
    'swliveconnect' => variable_get('swftools_params_swliveconnect', 'default'),
    'version' => variable_get('swftools_params_version', '7'),
    'allowfullscreen' => variable_get('swftools_params_allowfullscreen', TRUE),
  );
  $defaults['play'] = _swftools_tf($defaults['play']);
  $defaults['loop'] = _swftools_tf($defaults['loop']);
  $defaults['menu'] = _swftools_tf($defaults['menu']);
  $defaults['allowfullscreen'] = _swftools_tf($defaults['allowfullscreen']);
  return $defaults;
}