Implements hook_library_alter().

Fichier

advagg_mod/advagg_mod.module, line 271

Code

function advagg_mod_library_alter(&$javascript, $module) {
    if (!advagg_enabled()) {
        return;
    }
    if (!module_exists('jquery_update')) {
        return;
    }
    if (!advagg_mod_inline_page_js()) {
        return;
    }
    // Set the CDN to none for this page as everything is going to inlined.
    $GLOBALS['conf']['jquery_update_jquery_cdn'] = 'none';
    $GLOBALS['conf']['jquery_update_jquery_migrate_cdn'] = 'none';
}