function _swftools_options in SWF Tools 5
Same name and namespace in other branches
- 6.3 includes/swftools.admin.inc \_swftools_options()
- 6 swftools.admin.inc \_swftools_options()
- 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.
3 calls to _swftools_options()
- _onepixelout_admin_form in onepixelout/
onepixelout.admin.inc - _swftools_admin_embed_form in ./
swftools.admin.inc - _swftools_params in ./
swftools.module - These are the default params.
File
- ./
swftools.module, line 748
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;
}