You are here

function eu_cookie_compliance_update_7014 in EU Cookie Compliance (GDPR Compliance) 7

Same name and namespace in other branches
  1. 7.2 eu_cookie_compliance.install \eu_cookie_compliance_update_7014()

Change configuration variable whitelisted_cookies to allowed_cookies.

File

./eu_cookie_compliance.install, line 567
Installation file.

Code

function eu_cookie_compliance_update_7014() {
  $eu_cookie_settings = variable_get('eu_cookie_compliance', array());
  $eu_cookie_settings['allowed_cookies'] = $eu_cookie_settings['whitelisted_cookies'];
  unset($eu_cookie_settings['whitelisted_cookies']);
  variable_set('eu_cookie_compliance', $eu_cookie_settings);
}