| 1 |
<?php |
<?php |
| 2 |
// $Id: poormanscron.install,v 1.2.2.2 2009/09/29 22:36:15 davereid Exp $ |
// $Id: poormanscron.install,v 1.2.2.3 2009/11/27 00:57:30 davereid Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_uninstall(). |
* @file |
| 6 |
|
* Install, update and uninstall functions for the poormanscron module. |
| 7 |
|
*/ |
| 8 |
|
|
| 9 |
|
/** |
| 10 |
|
* Implement hook_uninstall(). |
| 11 |
*/ |
*/ |
| 12 |
function poormanscron_uninstall() { |
function poormanscron_uninstall() { |
| 13 |
variable_del('poormanscron_interval'); |
variable_del('poormanscron_interval'); |
| 17 |
} |
} |
| 18 |
|
|
| 19 |
/** |
/** |
| 20 |
* Upgrade to the D7 named variable for easy transition. |
* Upgrade to the D7 variable names for easy transition. |
| 21 |
*/ |
*/ |
| 22 |
function poormanscron_update_6200() { |
function poormanscron_update_6200() { |
| 23 |
$interval = variable_get('poormanscron_interval', 60) * 60; |
$interval = variable_get('poormanscron_interval', 60) * 60; |