Projet

Général

Profil

Révision 4f315dab

Ajouté par Assos Assos il y a environ 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/recaptcha/recaptcha.install
9 9
 * Implements hook_uninstall().
10 10
 */
11 11
function recaptcha_uninstall() {
12
  // Delete all the recaptcha variables and then clear the variable cache
12
  // Delete all the recaptcha variables and then clear the variable cache.
13 13
  db_delete('variable')
14 14
    ->condition('name', 'recaptcha_%', 'LIKE')
15 15
    ->execute();
16
  cache_clear_all('variables', 'cache');
16
  cache_clear_all('variables', 'cache_bootstrap');
17 17
}
18 18

  
19 19
/**
20
 * @todo The next time there is an update hook, that hook should run:
21
 * variable_del('recaptcha_secure_connection');
22
 * This removes a variable no longer in use due to https://drupal.org/node/1827922
20
 * Implements hook_update_N().
23 21
 */
22

  
23
/**
24
 * Issue #2473329: Remove obsolete variables.
25
 */
26
function recaptcha_update_7100() {
27
  $variables = array(
28
    'recaptcha_secure_connection',
29
    'recaptcha_api_server',
30
    'recaptcha_api_secure_server',
31
    'recaptcha_verify_server',
32
  );
33
  foreach ($variables as $variable) {
34
    variable_del($variable);
35
  }
36
  return t('Removed obsolete variables.');
37
}

Formats disponibles : Unified diff