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/advagg.admin.inc
Form builder; Show info about advagg and advagg settings.
advagg_build_filename in sites/all/modules/ulmus/advagg/advagg.inc
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/advagg_mod.admin.inc
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

File

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

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.
    $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.
      lock_release(__FUNCTION__);
    }
  }

  return $current_hash;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.