function update_uninstall

Same name and namespace in other branches
  1. 7.x modules/update/update.install \update_uninstall()
  2. 9 core/modules/update/update.install \update_uninstall()
  3. 8.9.x core/modules/update/update.install \update_uninstall()
  4. 10 core/modules/update/update.install \update_uninstall()

Implements hook_uninstall().

File

core/modules/update/update.install, line 84

Code

function update_uninstall() {
    \Drupal::state()->delete('update.last_check');
    \Drupal::state()->delete('update.last_email_notification');
    $queue = \Drupal::queue('update_fetch_tasks');
    $queue->deleteQueue();
}

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