You are here

recaptcha_mailhide.install in reCAPTCHA 7

Same filename and directory in other branches
  1. 6 recaptcha_mailhide/recaptcha_mailhide.install

Provides install, updated, and uninstall functions for recaptcha_mailhide.

File

recaptcha_mailhide/recaptcha_mailhide.install
View source
<?php

/**
 * @file
 * Provides install, updated, and uninstall functions for recaptcha_mailhide.
 */

/**
 * Implements hook_update_N().
 */

/**
 * Issue #2473329: Remove obsolete variables.
 */
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.');
}

Functions

Namesort descending Description
recaptcha_mailhide_update_7100 Issue #2473329: Remove obsolete variables.