You are here

function advagg_get_hash_settings in Advanced CSS/JS Aggregation 7.2

Returns the hashes settings.

Parameters

string $hash: The name of the variable to return.

Return value

array The settings array or an empty array if not found.

4 calls to advagg_get_hash_settings()
advagg_detect_subfile_changes in ./advagg.cache.inc
See if any of the subfiles has changed.
advagg_get_current_hooks_hash in ./advagg.module
Get the hash of all hooks and settings that affect aggregated files contents.
advagg_get_hashes_from_filename in ./advagg.missing.inc
Given a filename return the type and 2 hashes.
advagg_requirements in ./advagg.install
Implements hook_requirements().

File

./advagg.module, line 3623
Advanced CSS/JS aggregation module.

Code

function advagg_get_hash_settings($hash) {
  $settings = db_select('advagg_aggregates_hashes', 'aah')
    ->fields('aah', array(
    'settings',
  ))
    ->condition('hash', $hash)
    ->execute()
    ->fetchField();
  return !empty($settings) ? unserialize($settings) : array();
}