function theme_swftools_embed in SWF Tools 5
Same name and namespace in other branches
- 6.3 includes/swftools.theme.inc \theme_swftools_embed()
- 6 swftools.module \theme_swftools_embed()
- 6.2 swftools.module \theme_swftools_embed()
1 theme call to theme_swftools_embed()
- swf in ./
swftools.module - Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>
File
- ./
swftools.module, line 403
Code
function theme_swftools_embed($embed_code, $action, $methods, $vars, $html_alt) {
// Generate a css id if possible.
$id = $vars->othervars['id'] ? ' id="swf-' . $vars->othervars['id'] . '"' : '';
$classes[] = 'swftools-wrapper';
$classes[] = str_replace('_', '-', $methods->player['name']);
$classes[] = $vars->othervars['class'];
return '<div' . $id . ' class="' . implode(' ', $classes) . '">' . $embed_code . '</div>';
}