function advagg_get_current_hooks_hash

cis7 advagg.module advagg_get_current_hooks_hash()
cle7 advagg.module advagg_get_current_hooks_hash()
elmsmedia7 advagg.module advagg_get_current_hooks_hash()
icor7 advagg.module advagg_get_current_hooks_hash()
meedjum_blog7 advagg.module advagg_get_current_hooks_hash()
mooc7 advagg.module advagg_get_current_hooks_hash()

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

Return value

string hash value.

7 calls to advagg_get_current_hooks_hash()
advagg_admin_info_form in sites/all/modules/ulmus/advagg/
Form builder; Show info about advagg and advagg settings.
advagg_build_filename in sites/all/modules/ulmus/advagg/
Build the filename.
advagg_modify_css_pre_render in sites/all/modules/ulmus/advagg/advagg.module
Callback for pre_render so elements can be modified before they are rendered.
advagg_mod_admin_settings_form in sites/all/modules/ulmus/advagg/advagg_mod/
Form builder; Configure advagg settings.
_advagg_aggregate_css in sites/all/modules/ulmus/advagg/advagg.module
Default callback to aggregate CSS files and inline content.

... See full list


sites/all/modules/ulmus/advagg/advagg.module, line 1646
Advanced CSS/JS aggregation module.


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.
    $current_hash = drupal_hash_base64(serialize($aggregate_settings));

    // Save into variables for verification purposes later on if not found.
    $settings = advagg_get_hash_settings($current_hash);
    if (empty($settings) && lock_acquire(__FUNCTION__, 5)) {
      // Save new hash into.
      advagg_set_hash_settings($current_hash, $aggregate_settings);

      // Release lock.

  return $current_hash;