function statistics_uninstall

Same name in other branches
  1. 7.x modules/statistics/statistics.install \statistics_uninstall()
  2. 9 core/modules/statistics/statistics.install \statistics_uninstall()
  3. 8.9.x core/modules/statistics/statistics.install \statistics_uninstall()
  4. 10 core/modules/statistics/statistics.install \statistics_uninstall()

Implements hook_uninstall().

File

core/modules/statistics/statistics.install, line 13

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.