You are here

function recaptcha_update_6100 in reCAPTCHA 6

Issue #2473329: Remove obsolete variables.

File

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

Code

function recaptcha_update_6100() {
  $ret = array();
  foreach (array(
    'recaptcha_secure_connection',
    'recaptcha_api_server',
    'recaptcha_api_secure_server',
    'recaptcha_verify_server',
  ) as $variable) {
    variable_del($variable);
  }
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Removed obsolete variables.',
  );
  return $ret;
}