You are here

function swftools_push_js in SWF Tools 5

Same name and namespace in other branches
  1. 6 swftools.module \swftools_push_js()
  2. 6.2 swftools.module \swftools_push_js()
1 call to swftools_push_js()
swftools_menu in ./swftools.module
Implementation of hook_menu().

File

./swftools.module, line 831

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');
}