function social_tour_uninstall in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.2 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.3 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.4 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.5 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.6 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 8.7 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 10.3.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 10.0.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 10.1.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
- 10.2.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
Implements hook_uninstall().
Remove config that was imported on install.
File
- modules/
custom/ social_tour/ social_tour.install, line 29 - Install, update and uninstall functions for the social_tour module.
Code
function social_tour_uninstall() {
$configs = [
'tour.tour.social_event_overview',
'tour.tour.social_explore',
'tour.tour.social_group',
'tour.tour.social_group_overview',
'tour.tour.social_home',
'tour.tour.social_node_view',
'tour.tour.social_profile',
'tour.tour.social_topic_overview',
'tour.tour.social_user',
];
foreach ($configs as $config) {
// Deleting config.
\Drupal::configFactory()
->getEditable($config)
->delete();
}
}