function phptemplate_closure in Javascript Aggregator 6
Implementation of theme_closure().
Minify the aggregated JavaScript file in the page footer if JavaScript Optimization is turned on.
File
- ./
javascript_aggregator.module, line 83
Code
function phptemplate_closure($main = 0) {
$footer = module_invoke_all('footer', $main);
$js_footer = drupal_get_js('footer');
// Only do this for pages that have JavaScript on them.
if (!empty($js_footer)) {
$js_footer = _javascript_aggregator_minify($js_footer);
}
return implode("\n", $footer) . $js_footer;
}