function css_emimage_replace_filename in CSS Embedded Images 7
Given a filename, replace the 3rd hash with the given hash.
Parameters
$filename: Filename.
$hash: Hash.
Return value
New filename.
1 call to css_emimage_replace_filename()
File
- ./
css_emimage.advagg.inc, line 237 - CSS Embedded Images module.
Code
function css_emimage_replace_filename($filename, $hash) {
module_load_include('inc', 'advagg', 'advagg.missing');
list($type, $aggregate_filenames_hash, $aggregate_contents_hash, $aggregate_settings) = advagg_get_hashes_from_filename($filename);
return advagg_build_filename($type, $aggregate_filenames_hash, $aggregate_contents_hash, $hash);
}