function social_gdpr_install in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.2 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.3 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.4 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.5 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.6 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.7 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 8.8 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 10.0.x modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 10.1.x modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
- 10.2.x modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
Implements hook_install().
File
- modules/
custom/ social_gdpr/ social_gdpr.install, line 13 - Install, update and uninstall functions for the social_gdpr module.
Code
function social_gdpr_install() {
// Set some default permissions.
_social_gdpr_set_permissions();
\Drupal::configFactory()
->getEditable('data_policy.data_policy')
->set('enforce_consent', TRUE)
->save();
}