function social_core_update_8019 in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.2 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.3 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.4 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.5 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.6 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.7 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 8.8 modules/social_features/social_core/social_core.install \social_core_update_8019()
- 10.3.x modules/social_features/social_core/social_core.install \social_core_update_8019()
- 10.0.x modules/social_features/social_core/social_core.install \social_core_update_8019()
- 10.2.x modules/social_features/social_core/social_core.install \social_core_update_8019()
Install the social_file_private module.
File
- modules/
social_features/ social_core/ social_core.install, line 612 - Install, update and uninstall functions for the social_core module.
Code
function social_core_update_8019() {
$file_private_path_base_path = PrivateStream::basePath();
if ($file_private_path_base_path !== NULL) {
$modules = [
'social_file_private',
];
\Drupal::service('module_installer')
->install($modules);
\Drupal::messenger()
->addStatus(t('Installed the social_file_private module. Make sure to read: https://www.drupal.org/docs/8/distributions/open-social/private-files'));
}
else {
\Drupal::messenger()
->addWarning(t('Skipped installing the social_file_private module because your Private file system is not set. This could have some security implications. More info: https://www.drupal.org/docs/8/distributions/open-social/private-files'));
}
}