function advagg_sri_set_filename_hashes in Advanced CSS/JS Aggregation 7.2
Store settings associated with hash.
Parameters
string $filename: The name of the aggregated filename.
array $hashes: An array of SHA hashes of the contents of this filename.
Return value
MergeQuery value from db_merge
2 calls to advagg_sri_set_filename_hashes()
- advagg_sri_advagg_save_aggregate_alter in advagg_sri/
advagg_sri.advagg.inc - Implements hook_advagg_save_aggregate_alter().
- advagg_sri_get_filenames_hashes in advagg_sri/
advagg_sri.advagg.inc - Returns the hashes settings.
File
- advagg_sri/
advagg_sri.advagg.inc, line 143 - Advanced aggregation sri module.
Code
function advagg_sri_set_filename_hashes($filename, array $hashes) {
return db_merge('advagg_sri')
->key(array(
'filename' => $filename,
))
->fields(array(
'filename' => $filename,
'hashes' => serialize($hashes),
))
->execute();
}