You are here

function purge_uninstall in Purge 8.3

Same name and namespace in other branches
  1. 6 purge.install \purge_uninstall()
  2. 7.2 purge.install \purge_uninstall()
  3. 7 purge.install \purge_uninstall()

Implements hook_uninstall().

File

./purge.install, line 22
Installation file for the purge module.

Code

function purge_uninstall() {
  if (\Drupal::database()
    ->schema()
    ->tableExists('purge_queue')) {
    \Drupal::database()
      ->schema()
      ->dropTable('purge_queue');
  }
}