You are here

function recaptcha_uninstall in reCAPTCHA 7

Same name and namespace in other branches
  1. 5.2 recaptcha.install \recaptcha_uninstall()
  2. 6.2 recaptcha.install \recaptcha_uninstall()
  3. 6 recaptcha.install \recaptcha_uninstall()
  4. 7.2 recaptcha.install \recaptcha_uninstall()

Implements hook_uninstall().

File

./recaptcha.install, line 11
Provides install, updated, and uninstall functions for recaptcha.

Code

function recaptcha_uninstall() {

  // Delete all the recaptcha variables and then clear the variable cache.
  db_delete('variable')
    ->condition('name', 'recaptcha_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
}