/[drupal]/contributions/modules/poormanscron/poormanscron.install
ViewVC logotype

Diff of /contributions/modules/poormanscron/poormanscron.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Tue Sep 29 22:28:04 2009 UTC revision 1.2.2.1, Tue Sep 29 22:31:58 2009 UTC
# Line 5  Line 5 
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  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2