| 5 |
* Implementation of hook_uninstall(). |
* Implementation of hook_uninstall(). |
| 6 |
*/ |
*/ |
| 7 |
function poormanscron_uninstall() { |
function poormanscron_uninstall() { |
| 8 |
db_query("DELETE FROM {variable} WHERE name LIKE 'poormanscron_%'"); |
variable_del('poormanscron_interval'); |
| 9 |
cache_clear_all('variables', 'cache'); |
variable_del('poormanscron_retry_interval'); |
| 10 |
|
variable_del('poormanscron_log_cron_runs'); |
| 11 |
|
} |
| 12 |
|
|
| 13 |
|
function poormanscron_update_6200() { |
| 14 |
|
$interval = variable_get('poormanscron_interval', 60) * 60; |
| 15 |
|
variable_set('cron_safe_threshold', max($interval, 3600)); |
| 16 |
|
variable_del('poormanscron_interval'); |
| 17 |
|
variable_del('poormanscron_retry_interval'); |
| 18 |
|
variable_del('poormanscron_log_cron_runs'); |
| 19 |
} |
} |