You are here

function advagg_build_filename in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 6 advagg.module \advagg_build_filename()
  2. 7 advagg.module \advagg_build_filename()

Build the filename.

Parameters

string $type: String; css or js.

string $aggregate_filenames_hash: Hash of the groupings of files.

string $aggregate_contents_hash: Hash of the files contents.

string $hooks_hash: Hash value from advagg_get_current_hooks_hash().

Return value

string String: The filename. No path info.

1 call to advagg_build_filename()
advagg_get_aggregate_info_from_files in ./advagg.inc
Given a group of files calculate various hashes and gather meta data.

File

./advagg.inc, line 770
Advanced CSS/JS aggregation module.

Code

function advagg_build_filename($type, $aggregate_filenames_hash, $aggregate_contents_hash, $hooks_hash = '') {
  if (empty($hooks_hash)) {
    $hooks_hash = advagg_get_current_hooks_hash();
  }
  return $type . ADVAGG_SPACE . $aggregate_filenames_hash . ADVAGG_SPACE . $aggregate_contents_hash . ADVAGG_SPACE . $hooks_hash . '.' . $type;
}