function eu_cookie_compliance_get_settings in EU Cookie Compliance (GDPR Compliance) 5
Same name and namespace in other branches
- 6 eu_cookie_compliance.module \eu_cookie_compliance_get_settings()
- 7.2 eu_cookie_compliance.module \eu_cookie_compliance_get_settings()
- 7 eu_cookie_compliance.module \eu_cookie_compliance_get_settings()
Retrieves settings from the database for a current language.
@global type $language
Parameters
type $setting:
Return value
type
3 calls to eu_cookie_compliance_get_settings()
- eu_cookie_compliance_admin_form in ./
eu_cookie_compliance.module - Provides form for cookie control popup.
- eu_cookie_compliance_footer in ./
eu_cookie_compliance.module - Implements hook_footer().
- eu_cookie_compliance_init in ./
eu_cookie_compliance.module - Implements hook_init().
File
- ./
eu_cookie_compliance.module, line 278 - This module intends to deal with the EU Directive on Privacy and Electronic Communications that comes into effect in the UK on 26th May 2012.
Code
function eu_cookie_compliance_get_settings($setting = 'all') {
global $locale;
$ln = $locale;
$popup_settings = variable_get('eu_cookie_compliance_' . $ln, array());
if ($setting == 'all') {
return $popup_settings;
}
return $popup_settings[$setting];
}