You are here

function advagg_mod_library_alter in Advanced CSS/JS Aggregation 7.2

Implements hook_library_alter().

File

advagg_mod/advagg_mod.module, line 271
Advanced aggregation modifier module.

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';
}