/[drupal]/contributions/modules/cronplus/cronplus.module
ViewVC logotype

Diff of /contributions/modules/cronplus/cronplus.module

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

revision 1.8.2.2, Fri Dec 19 04:35:25 2008 UTC revision 1.8.2.3, Fri Dec 19 04:45:24 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /**  /**
3   * $Id: cronplus.module,v 1.8.2.1 2008/12/19 04:14:21 syscrusher Exp $   * $Id: cronplus.module,v 1.8.2.2 2008/12/19 04:35:25 syscrusher Exp $
4   *   *
5   * CronPlus enhances the Drupal cron feature to provide specific calls to   * CronPlus enhances the Drupal cron feature to provide specific calls to
6   * other modules at hourly, daily, weekly, monthly, and yearly intervals.   * other modules at hourly, daily, weekly, monthly, and yearly intervals.
# Line 142  function cronplus_logview_form() { Line 142  function cronplus_logview_form() {
142   */   */
143  function cronplus_logview_form_submit($form_id, $form_values) {  function cronplus_logview_form_submit($form_id, $form_values) {
144    $_SESSION['watchdog_overview_filter'] = 'cronplus';    $_SESSION['watchdog_overview_filter'] = 'cronplus';
145    drupal_goto('admin/logs/watchdog');    drupal_goto('admin/reports/dblog');
146  }  }
147    
148  /**  /**
# Line 273  function cronplus_invoke_hook($period, $ Line 273  function cronplus_invoke_hook($period, $
273    $function_name = 'cronplus_'. $period;    $function_name = 'cronplus_'. $period;
274    $last_this = variable_get($function_name .'_last', 0);    $last_this = variable_get($function_name .'_last', 0);
275    variable_set($function_name .'_last', $now);    variable_set($function_name .'_last', $now);
276    watchdog('cronplus', t('Processing %period cron for %d UTC, calling {module}_%func() for all modules', array('%d' => $now_fmt, '%period' => t($period), '%func' => $function_name)), WATCHDOG_NOTICE);    watchdog('cronplus', 'Processing %period cron for %d UTC, calling {module}_%func() for all modules', array('%d' => $now_fmt, '%period' => t($period), '%func' => $function_name), WATCHDOG_NOTICE);
277    @module_invoke_all($function_name, $now, $last_cron, $last_this);    @module_invoke_all($function_name, $now, $last_cron, $last_this);
278    @module_invoke_all('cronplus', $period, $now, $last_cron, $last_this);    @module_invoke_all('cronplus', $period, $now, $last_cron, $last_this);
279  }  }
# Line 295  function _cronplus_int_options($min, $ma Line 295  function _cronplus_int_options($min, $ma
295    }    }
296    return $options;    return $options;
297  }  }
 ?>  

Legend:
Removed from v.1.8.2.2  
changed lines
  Added in v.1.8.2.3

  ViewVC Help
Powered by ViewVC 1.1.2