You are here

function download_count_uninstall in Open Social 8.2

Same name and namespace in other branches
  1. 8.9 modules/custom/download_count/download_count.install \download_count_uninstall()
  2. 8 modules/custom/download_count/download_count.install \download_count_uninstall()
  3. 8.3 modules/custom/download_count/download_count.install \download_count_uninstall()
  4. 8.4 modules/custom/download_count/download_count.install \download_count_uninstall()
  5. 8.5 modules/custom/download_count/download_count.install \download_count_uninstall()
  6. 8.6 modules/custom/download_count/download_count.install \download_count_uninstall()
  7. 8.7 modules/custom/download_count/download_count.install \download_count_uninstall()
  8. 8.8 modules/custom/download_count/download_count.install \download_count_uninstall()
  9. 10.3.x modules/custom/download_count/download_count.install \download_count_uninstall()
  10. 10.0.x modules/custom/download_count/download_count.install \download_count_uninstall()
  11. 10.1.x modules/custom/download_count/download_count.install \download_count_uninstall()
  12. 10.2.x modules/custom/download_count/download_count.install \download_count_uninstall()

Implements hook_uninstall().

File

modules/custom/download_count/download_count.install, line 85
Installation code for the download_count module.

Code

function download_count_uninstall() {
  \Drupal::service('config.factory')
    ->getEditable('download_count.settings')
    ->delete();
  drupal_set_message(t('The download count module has been uninstalled.'));
}