Projet

Général

Profil

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

root / drupal7 / sites / all / modules / recaptcha / recaptcha.install @ f76f30e1

1
<?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
  // Delete all the recaptcha variables and then clear the variable cache
13
  db_delete('variable')
14
    ->condition('name', 'recaptcha_%', 'LIKE')
15
    ->execute();
16
  cache_clear_all('variables', 'cache');
17
}
18

    
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
23
 */