You are here

function social_tour_uninstall in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  2. 8 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  3. 8.2 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  4. 8.3 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  5. 8.4 modules/custom/social_tour/social_tour.install \social_tour_uninstall()
  6. 8.5 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 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();
  }
}