Let other modules know about the changed files.
Paramètres
array $files: An associative array. filename - meta_data.
array $types: Array containing css and/or js.
Return value
array Not used currently.
Voir aussi
advagg_js_compress_advagg_changed_files()
Sujets associés
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 dans ./
advagg.advagg.inc - Implements hook_advagg_changed_files().
1 invocation of hook_advagg_changed_files()
- advagg_push_new_changes dans ./
advagg.cache.inc - Flush the correct caches so CSS/JS changes go live.
Fichier
-
./
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;
}