You are here

function _swftools_options in SWF Tools 6

Same name and namespace in other branches
  1. 5 swftools.module \_swftools_options()
  2. 6.3 includes/swftools.admin.inc \_swftools_options()
  3. 6.2 swftools.admin.inc \_swftools_options()

flashvar and param option arrays. These are used for options settings in the configuration screen and also as a lookup (particularly 'bool') to output the correct value for to html.

1 call to _swftools_options()
swftools_admin_embed_form in ./swftools.admin.inc

File

./swftools.admin.inc, line 400

Code

function _swftools_options() {

  // cache output each request
  static $swf_options = array();
  if (!count($swf_options)) {
    $swf_options['quality'] = array(
      'low' => 'low',
      'autolow' => 'autolow',
      'medium' => 'medium',
      'high' => 'high',
      'autohigh' => 'autohigh',
      'best' => 'best',
    );
    $swf_options['wmode'] = array(
      'window' => 'window',
      'opaque' => 'opaque',
      'transparent' => 'transparent',
    );
    $swf_options['scale'] = array(
      'showall' => 'showall',
      'noborder' => 'noborder',
      'exactfit' => 'exactfit',
    );
    $swf_options['align'] = array(
      'default' => 'centered',
      'l' => 'left',
      'r' => 'right',
      't' => 'top',
      'b' => 'bottom',
    );
    $swf_options['salign'] = array(
      'l' => 'left',
      'r' => 'right',
      't' => 'top',
      'b' => 'bottom',
      'tl' => 'top left',
      'tr' => 'top right',
      'bl' => 'bottom left',
      'br' => 'bottom right',
    );
    $swf_options['bool'] = array(
      'default' => 'default',
      'true' => 'true',
      'false' => 'false',
    );
  }
  return $swf_options;
}