You are here

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()
css_emimage_advagg_build_aggregate_plans_alter in ./css_emimage.advagg.inc
Implements hook_advagg_build_aggregate_plans_alter().

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);
}