Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm wrong or the following code represents a wrong function name because the correct name of implementation of hook_js_alter
should be advagg_mod_js_alter
, also because advagg_mod_post_js_alter
function it's never called?
Version 2.21 it's not affected by this bug
// Helper Functions.
/**
* Alter the js array.
*
* @param array $js
* JS array.
*/
function advagg_mod_post_js_alter(array &$js) {
if (!module_exists('advagg') || !advagg_enabled()) {
return;
}
Comments
Comment #2
vincenzodb CreditAttribution: vincenzodb as a volunteer commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commented#2877882: Breakage after update to 7.x.23