You are here

function eu_cookie_compliance_library_alter in EU Cookie Compliance (GDPR Compliance) 7

Same name and namespace in other branches
  1. 7.2 eu_cookie_compliance.module \eu_cookie_compliance_library_alter()

Implements hook_library_alter().

File

./eu_cookie_compliance.module, line 827
EU cookie compliance primary module file.

Code

function eu_cookie_compliance_library_alter(&$libraries, $module) {
  if ($module !== 'system') {
    return;
  }
  $libraries['jquery.cookie']['js']['misc/jquery.cookie.js']['data'] = drupal_get_path('module', 'eu_cookie_compliance') . '/js/jquery.cookie-1.4.1.min.js';
  $libraries['jquery.cookie']['version'] = '1.4.1';
}