function social_core_update_8027 in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.2 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.3 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.4 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.5 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.6 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 8.7 modules/social_features/social_core/social_core.install \social_core_update_8027()
- 10.3.x modules/social_features/social_core/social_core.install \social_core_update_8027()
- 10.0.x modules/social_features/social_core/social_core.install \social_core_update_8027()
- 10.1.x modules/social_features/social_core/social_core.install \social_core_update_8027()
- 10.2.x modules/social_features/social_core/social_core.install \social_core_update_8027()
Re-save settings for r4032login to enable redirect to destination.
File
- modules/
social_features/ social_core/ social_core.install, line 881 - Install, update and uninstall functions for the social_core module.
Code
function social_core_update_8027() {
if (\Drupal::moduleHandler()
->moduleExists('r4032login')) {
$config = \Drupal::configFactory()
->getEditable('r4032login.settings');
if (!$config
->get('redirect_to_destination')) {
$config
->set('redirect_to_destination', TRUE);
}
if (!$config
->get('destination_parameter_override')) {
$config
->set('destination_parameter_override', '');
}
$config
->save();
}
}