function social_search_update_8102 in Open Social 8.5
Same name and namespace in other branches
- 8 modules/social_features/social_search/social_search.install \social_search_update_8102()
- 8.2 modules/social_features/social_search/social_search.install \social_search_update_8102()
- 8.3 modules/social_features/social_search/social_search.install \social_search_update_8102()
- 8.4 modules/social_features/social_search/social_search.install \social_search_update_8102()
- 8.6 modules/social_features/social_search/social_search.install \social_search_update_8102()
- 8.7 modules/social_features/social_search/social_search.install \social_search_update_8102()
Remove deprecated bloks and views from Social Search module.
File
- modules/
social_features/ social_search/ social_search.install, line 104 - Install, update and uninstall functions for the social_search module.
Code
function social_search_update_8102(array &$sandbox) {
// Remove exposed filter blocks from Social Search Views.
$block_ids = [
'search_content_block_title',
'search_users_block_title',
'searchgroupsblock',
];
foreach ($block_ids as $block_id) {
$block = Block::load($block_id);
if ($block instanceof Block) {
$block
->delete();
}
}
// Delete Search Groups (proximity) Views.
$view = View::load('search_groups_proximity');
if ($view) {
$view
->delete();
}
}