function eu_cookie_compliance_update_7011 in EU Cookie Compliance (GDPR Compliance) 7
Same name and namespace in other branches
- 7.2 eu_cookie_compliance.install \eu_cookie_compliance_update_7011()
Make sure that configurations are correct for multilingual sites.
File
- ./
eu_cookie_compliance.install, line 477 - Installation file.
Code
function eu_cookie_compliance_update_7011() {
if (function_exists('i18n_variable_get')) {
$languages = language_list();
foreach (array_keys($languages) as $language) {
$eu_cookie_language_settings = i18n_variable_get('eu_cookie_compliance', $language);
if ($eu_cookie_language_settings && !array_key_exists('info_template', $eu_cookie_language_settings)) {
$eu_cookie_language_settings['info_template'] = 'legacy';
variable_realm_set('language', $language, 'eu_cookie_compliance', $eu_cookie_language_settings, FALSE);
}
}
}
}