You are here

function statistics_uninstall in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/statistics/statistics.install \statistics_uninstall()
  2. 5 modules/statistics/statistics.install \statistics_uninstall()
  3. 6 modules/statistics/statistics.install \statistics_uninstall()
  4. 7 modules/statistics/statistics.install \statistics_uninstall()
  5. 9 core/modules/statistics/statistics.install \statistics_uninstall()

Implements hook_uninstall().

File

core/modules/statistics/statistics.install, line 11
Install and update functions for the Statistics module.

Code

function statistics_uninstall() {

  // Remove states.
  \Drupal::state()
    ->delete('statistics.node_counter_scale');
  \Drupal::state()
    ->delete('statistics.day_timestamp');
}