function social_core_update_8019 in Open Social 8.3
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.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.1.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 599 - Install, update and uninstall functions for the social_comment 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_set_message(t('Installed the social_file_private module. Make sure to read: https://github.com/goalgorilla/drupal_social/wiki/Private-files'));
}
else {
drupal_set_message(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://github.com/goalgorilla/drupal_social/wiki/Private-files'), 'warning');
}
}