You are here

recaptcha_mailhide.install in reCAPTCHA 6

Same filename and directory in other branches
  1. 7 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.
 */

/**
 * Issue #2473329: Remove obsolete variables.
 */
function recaptcha_mailhide_update_6100() {
  $ret = array();

  // recaptcha_mailhide no longer uses any variables.
  db_query("DELETE FROM {variable} WHERE name LIKE '%s'", 'recaptcha_mailhide_%');
  cache_clear_all('variables', 'cache');
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Removed obsolete variables.',
  );
  return $ret;
}

Functions

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