You are here

better_statistics.install in Better Statistics 8

Same filename and directory in other branches
  1. 6 better_statistics.install
  2. 7 better_statistics.install

File

better_statistics.install
View source
<?php

/**
 * @file
 * Contains better_statistics.install.
 */

/**
 * Implements hook_uninstall().
 */
function better_statistics_uninstall() {
  $configs = [
    'block.block.views_block__most_viewed_articles_most_viewed_articles_block',
    'block.block.views_block__entity_interactions_top_content_contributors_block',
    'views.view.most_viewed_articles',
    'views.view.entity_interactions',
    'views.view.user_contributions',
  ];
  foreach ($configs as $config) {
    Drupal::configFactory()
      ->getEditable($config)
      ->delete();
  }
}

Functions

Namesort descending Description
better_statistics_uninstall Implements hook_uninstall().