function _social_profile_set_default_config in Open Social 8.7
Same name and namespace in other branches
- 8 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
- 8.2 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
- 8.3 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
- 8.4 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
- 8.5 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
- 8.6 modules/social_features/social_profile/social_profile.install \_social_profile_set_default_config()
Set default config.
2 calls to _social_profile_set_default_config()
- social_profile_install in modules/
social_features/ social_profile/ social_profile.install - Implements hook_install().
- social_profile_update_8003 in modules/
social_features/ social_profile/ social_profile.install - Add social_profile.settings config. Update permissions for SM role.
File
- modules/
social_features/ social_profile/ social_profile.install, line 153 - Install, update and uninstall functions for the social_profile module.
Code
function _social_profile_set_default_config() {
$config = \Drupal::configFactory()
->getEditable('social_profile.settings');
$config
->set('social_profile_show_email', 1);
$config
->save();
}