function agrcache_process_js_group in Aggregate cache 7
Process a js group for aggregation.
1 call to agrcache_process_js_group()
- agrcache_collect_js_group in ./
agrcache.module - Collect javascript files.
File
- ./
agrcache.module, line 339 - Provides imagecache style generation of css/js aggregates.
Code
function agrcache_process_js_group($js) {
$data = '';
foreach ($js as $path => $info) {
if ($info['preprocess'] && file_exists($path)) {
// Append a ';' and a newline after each JS file to prevent them from running together.
$data .= file_get_contents($path) . ";\n";
}
}
return $data;
}