poormanscron.install in Poormanscron 6.2
Same filename and directory in other branches
Install, update and uninstall functions for the poormanscron module.
File
poormanscron.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the poormanscron module.
*/
/**
* Implements hook_uninstall().
*/
function poormanscron_uninstall() {
variable_del('poormanscron_interval');
variable_del('poormanscron_retry_interval');
variable_del('poormanscron_log_cron_runs');
variable_del('cron_safe_threshold');
variable_del('cron_threshold_semaphore');
}
/**
* Upgrade to the D7 variable names for easy transition.
*/
function poormanscron_update_6200() {
$interval = variable_get('poormanscron_interval', 60) * 60;
variable_set('cron_safe_threshold', max($interval, 3600));
variable_del('poormanscron_interval');
variable_del('poormanscron_retry_interval');
variable_del('poormanscron_log_cron_runs');
return array();
}
/**
* JavaScript variable names have changed.
*/
function poormanscron_update_6201() {
return array();
}
Functions
Name | Description |
---|---|
poormanscron_uninstall | Implements hook_uninstall(). |
poormanscron_update_6200 | Upgrade to the D7 variable names for easy transition. |
poormanscron_update_6201 | JavaScript variable names have changed. |