Projet

Général

Profil

Paste
Télécharger (785 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / recaptcha / recaptcha.install @ 0ccfec7f

1 85ad3d82 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * Provides install, updated, and uninstall functions for recaptcha.
6
 */
7
8
/**
9
 * Implements hook_uninstall().
10
 */
11
function recaptcha_uninstall() {
12 4f315dab Assos Assos
  // Delete all the recaptcha variables and then clear the variable cache.
13 85ad3d82 Assos Assos
  db_delete('variable')
14
    ->condition('name', 'recaptcha_%', 'LIKE')
15
    ->execute();
16 4f315dab Assos Assos
  cache_clear_all('variables', 'cache_bootstrap');
17 85ad3d82 Assos Assos
}
18 f76f30e1 Assos Assos
19
/**
20 4f315dab Assos Assos
 * Implements hook_update_N().
21 f76f30e1 Assos Assos
 */
22 4f315dab Assos Assos
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
}