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

Get the hash of all hooks and settings that affect aggregated files contents.

Return value

string hash value.

5 calls to advagg_get_current_hooks_hash()
AssetDumper::__construct dans src/Asset/AssetDumper.php
Construct the AssetDumper instance.
CssCollectionOptimizer::__construct dans src/Asset/CssCollectionOptimizer.php
InfoForm::buildForm dans src/Form/InfoForm.php
JsCollectionOptimizer::__construct dans src/Asset/JsCollectionOptimizer.php
SettingsForm::buildForm dans advagg_mod/src/Form/SettingsForm.php

Fichier

./advagg.module, line 446

Code

function advagg_get_current_hooks_hash() {
    $current_hash =& drupal_static(__FUNCTION__);
    if (!isset($current_hash)) {
        // Get all advagg hooks and variables in use.
        $aggregate_settings = advagg_current_hooks_hash_array();
        // Generate the hash.
        $serialize_function = advagg_get_serializer();
        $current_hash = Crypt::hashBase64($serialize_function($aggregate_settings));
    }
    return $current_hash;
}