Révision 211d6cee
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/hidden_captcha/hidden_captcha.install | ||
---|---|---|
8 | 8 |
/** |
9 | 9 |
* Implements hook_uninstall(). |
10 | 10 |
* |
11 |
* On uninstall: Remove module variables and clear variable cache.
|
|
11 |
* Remove module variables, simulating variable_del().
|
|
12 | 12 |
*/ |
13 | 13 |
function hidden_captcha_uninstall() { |
14 |
db_query("DELETE FROM {variable} WHERE name LIKE 'hidden_captcha_%%'"); |
|
14 |
global $conf; |
|
15 |
db_delete('variable') |
|
16 |
->condition('name', 'hidden\_captcha\_%', 'LIKE') |
|
17 |
->execute(); |
|
18 |
cache_clear_all('variables', 'cache_bootstrap'); |
|
19 |
foreach (array_keys($conf) as $name) { |
|
20 |
if (strpos($name, 'hidden_captcha_') === 0) { |
|
21 |
unset($conf[$name]); |
|
22 |
} |
|
23 |
} |
|
15 | 24 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules