function social_group_update_8002 in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.3 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.4 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.5 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.6 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.7 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 8.8 modules/social_features/social_group/social_group.install \social_group_update_8002()
- 10.3.x modules/social_features/social_group/social_group.install \social_group_update_8002()
- 10.0.x modules/social_features/social_group/social_group.install \social_group_update_8002()
- 10.1.x modules/social_features/social_group/social_group.install \social_group_update_8002()
- 10.2.x modules/social_features/social_group/social_group.install \social_group_update_8002()
Make sure the group nodes view is disabled.
File
- modules/
social_features/ social_group/ social_group.install, line 177 - Install, update and uninstall functions for the social_group module.
Code
function social_group_update_8002() {
$view = \Drupal::service('entity.manager')
->getStorage('view')
->load('group_nodes');
if (!is_null($view)) {
$view
->setStatus(FALSE);
$view
->save();
}
}