You are here

function themekey_debug_uninstall in ThemeKey 7

Same name and namespace in other branches
  1. 6.4 themekey_debug.install \themekey_debug_uninstall()
  2. 6.2 themekey_debug.install \themekey_debug_uninstall()
  3. 6.3 themekey_debug.install \themekey_debug_uninstall()
  4. 7.3 themekey_debug.install \themekey_debug_uninstall()
  5. 7.2 themekey_debug.install \themekey_debug_uninstall()

Implements hook_uninstall().

File

./themekey_debug.install, line 16
Cleans up variables when uninstalling

Code

function themekey_debug_uninstall() {

  // Remove variables
  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {variable} WHERE name LIKE 'themekey_debug_%%'") */
  db_delete('variable')
    ->condition('name', 'themekey_debug_%%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache');
}