You are here

themekey_debug.install in ThemeKey 7.2

Cleans up variables when uninstalling

@author Markus Kalkbrenner | bio.logis GmbH

File

themekey_debug.install
View source
<?php

/**
 * @file
 * Cleans up variables when uninstalling
 * @see themekey_debug.module
 *
 * @author Markus Kalkbrenner | bio.logis GmbH
 *   @see http://drupal.org/user/124705
 */

/**
 * Implements hook_uninstall().
 */
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');
}

Functions

Namesort descending Description
themekey_debug_uninstall Implements hook_uninstall().