You are here

function recaptcha_mailhide_update_7100 in reCAPTCHA 7

Issue #2473329: Remove obsolete variables.

File

recaptcha_mailhide/recaptcha_mailhide.install, line 15
Provides install, updated, and uninstall functions for recaptcha_mailhide.

Code

function recaptcha_mailhide_update_7100() {

  // recaptcha_mailhide no longer uses any variables.
  db_delete('variable')
    ->condition('name', 'recaptcha_mailhide_%', 'LIKE')
    ->execute();
  cache_clear_all('variables', 'cache_bootstrap');
  return t('Removed obsolete variables.');
}