function statistics_uninstall

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

Implements hook_uninstall().

File

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

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.