You are here

function encrypt_uninstall in Encrypt 7

Same name and namespace in other branches
  1. 6 encrypt.install \encrypt_uninstall()
  2. 7.3 encrypt.install \encrypt_uninstall()
  3. 7.2 encrypt.install \encrypt_uninstall()

Implementation of hook_uninstall().

File

./encrypt.install, line 29
This file holds the functions for the installing and enabling of the encrypt module.

Code

function encrypt_uninstall() {

  // Get module variables
  $variables = db_query("SELECT v.name FROM {variable} AS v WHERE v.name LIKE :prefix", array(
    'prefix' => 'encrypt_%',
  ))
    ->fetchCol();

  // Remove variables
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}