function swftools_push_js in SWF Tools 6
Same name and namespace in other branches
- 5 swftools.module \swftools_push_js()
- 6.2 swftools.module \swftools_push_js()
1 call to swftools_push_js()
- swftools_init in ./
swftools.module - Implementation of hook_init()
File
- ./
swftools.module, line 798
Code
function swftools_push_js($embed = SWFDEFAULT) {
$all_methods = swftools_methods_available();
if (!$embed) {
$embed = variable_get(SWFTOOLS_EMBED_METHOD, SWFTOOLS_NOJAVASCRIPT);
}
$embed = $all_methods[SWFTOOLS_EMBED_METHOD][$embed];
// Call the module responsible to output the js. Don't pass any additional
// parameters - as we don't want the module to try and return the in-body
// html placeholder for the flash content.
$output = module_invoke($embed['module'], 'swftools_embed');
}