You are here

function spamicide_uninstall in Spamicide 7

Same name and namespace in other branches
  1. 5 spamicide.install \spamicide_uninstall()
  2. 6 spamicide.install \spamicide_uninstall()

Implements hook_uninstall(). Delete the tables required for the spamicide module

File

./spamicide.install, line 131
This module provides yet another tool to eliminate spam.

Code

function spamicide_uninstall() {

  // Remove directory and generated files.
  file_unmanaged_delete_recursive('public://' . variable_get('spamicide_dir', 'spamicide'));
  db_delete('variable')
    ->condition('name', 'spamicide_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache');
}