function social_tour_uninstall in Open Social 8.3
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.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()
- 8.8 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 27 - 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();
}
}