Same name in other branches
  1. 7.x-1.x advagg.module \advagg_build_filename()

Build the filename.

Paramètres

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 dans ./advagg.inc
Given a group of files calculate various hashes and gather meta data.

Fichier

./advagg.inc, line 770

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