You are here

function autofloat_uninstall in AutoFloat 7.2

Same name and namespace in other branches
  1. 8 autofloat.install \autofloat_uninstall()
  2. 6.2 autofloat.install \autofloat_uninstall()
  3. 6 autofloat.install \autofloat_uninstall()
  4. 7 autofloat.install \autofloat_uninstall()

Implements hook_uninstall().

File

./autofloat.install, line 23
Sets post-install messages and deletes variables when uninstalled.

Code

function autofloat_uninstall() {

  // Delete all variables set in variable table.
  db_delete('variable')
    ->condition('name', 'autofloat_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
}