You are here

function social_gdpr_install in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  2. 8.2 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  3. 8.3 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  4. 8.4 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  5. 8.5 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  6. 8.6 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  7. 8.7 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  8. 8.8 modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  9. 10.0.x modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  10. 10.1.x modules/custom/social_gdpr/social_gdpr.install \social_gdpr_install()
  11. 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();
}