Let other modules know about the changed files.

Parameters

array $files: An associative array. filename - meta_data.

array $types: Array containing css and/or js.

Return value

array Not used currently.

See also

advagg_push_new_changes()

advagg_js_compress_advagg_changed_files()

Related topics

1 function implements hook_advagg_changed_files()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

advagg_advagg_changed_files in ./advagg.advagg.inc
Implements hook_advagg_changed_files().
1 invocation of hook_advagg_changed_files()
advagg_push_new_changes in ./advagg.cache.inc
Flush the correct caches so CSS/JS changes go live.

File

./advagg.api.php, line 87

Code

function hook_advagg_changed_files(array $files, array $types) {
    // Only care about js files.
    if (empty($types['js'])) {
        return array();
    }
    $return = array();
    foreach ($files as $filename => $meta_data) {
        // Only care about js files.
        $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
        if ($ext !== 'js') {
            continue;
        }
        $return[$filename] = advagg_js_compress_run_test($filename);
    }
    return $return;
}