1 |
4f315dab
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Provides install, updated, and uninstall functions for recaptcha_mailhide.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_update_N().
|
10 |
|
|
*/
|
11 |
|
|
|
12 |
|
|
/**
|
13 |
|
|
* Issue #2473329: Remove obsolete variables.
|
14 |
|
|
*/
|
15 |
|
|
function recaptcha_mailhide_update_7100() {
|
16 |
|
|
// recaptcha_mailhide no longer uses any variables.
|
17 |
|
|
db_delete('variable')
|
18 |
|
|
->condition('name', 'recaptcha_mailhide_%', 'LIKE')
|
19 |
|
|
->execute();
|
20 |
|
|
cache_clear_all('variables', 'cache_bootstrap');
|
21 |
|
|
return t('Removed obsolete variables.');
|
22 |
|
|
} |