| 1 |
<?php |
<?php |
| 2 |
// $Id: poormanscron.install,v 1.1.2.1 2008/02/11 07:28:14 robloach Exp $ |
// $Id: poormanscron.install,v 1.2.2.1 2009/09/29 22:31:58 davereid Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_uninstall(). |
* Implementation of hook_uninstall(). |
| 10 |
variable_del('poormanscron_log_cron_runs'); |
variable_del('poormanscron_log_cron_runs'); |
| 11 |
} |
} |
| 12 |
|
|
| 13 |
|
/** |
| 14 |
|
* Upgrade to the D7 named variable for easy transition. |
| 15 |
|
*/ |
| 16 |
function poormanscron_update_6200() { |
function poormanscron_update_6200() { |
| 17 |
$interval = variable_get('poormanscron_interval', 60) * 60; |
$interval = variable_get('poormanscron_interval', 60) * 60; |
| 18 |
variable_set('cron_safe_threshold', max($interval, 3600)); |
variable_set('cron_safe_threshold', max($interval, 3600)); |