function _swftools_params in SWF Tools 6.3
Same name and namespace in other branches
- 5 swftools.module \_swftools_params()
- 6 swftools.module \_swftools_params()
- 6.2 swftools.module \_swftools_params()
Returns an array of default values to use as the swf parameters. Parameters are described in the Adobe knowledge base TechNote 12701 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
2 calls to _swftools_params()
- swf in ./
swftools.module - Processes a file, or an array of files, and returns the relevant mark-up to render a Flash based player.
- swftools_admin_embed_form in includes/
swftools.admin.inc - Form definition for embedding settings.
File
- ./
swftools.module, line 639 - The primary component of SWF Tools that enables comprehensive media handling.
Code
function _swftools_params() {
// Cache this
static $params = array();
// If not set then get defaults
if (!$params) {
// Define default parameters for case when settings have been stored
$defaults = array(
'swliveconnect' => 'false',
'play' => 'true',
'loop' => 'true',
'menu' => 'false',
'allowfullscreen' => 'true',
'quality' => 'autohigh',
'scale' => 'showall',
'align' => 'l',
'salign' => 'tl',
'wmode' => 'opaque',
'bgcolor' => '',
'version' => '7',
'allowscriptaccess' => 'sameDomain',
);
// Retrieve settings from the database if available
$params = variable_get('swftools_params', $defaults);
}
// Return the default parameters
return $params;
}