You are here

function authcache_uninstall in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 authcache.install \authcache_uninstall()
  2. 7.2 authcache.install \authcache_uninstall()

Implements hook_uninstall().

File

./authcache.install, line 72
Install, update and uninstall functions for the authcache module.

Code

function authcache_uninstall() {

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

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