You are here

function social_tour_uninstall in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  2. 8.2 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  3. 8.3 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  4. 8.4 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  5. 8.5 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  6. 8.6 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  7. 8.7 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  8. 8.8 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  9. 10.3.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  10. 10.0.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  11. 10.1.x modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  12. 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();
  }
}