function advagg_js_compress_advagg_files_table in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg_js_compress/advagg_js_compress.module \advagg_js_compress_advagg_files_table()
Implement hook_advagg_files_table.
File
- advagg_js_compress/
advagg_js_compress.module, line 94 - Advanced CSS/JS aggregation js compression module.
Code
function advagg_js_compress_advagg_files_table($row, $checksum) {
// IF the file has changed, test it's compressibility.
if ($row['filetype'] === 'js' && $checksum !== $row['checksum']) {
$files_to_test[] = array(
'md5' => $row['filename_md5'],
'filename' => $row['filename'],
);
advagg_js_compress_test_compression($files_to_test);
}
}