| 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. |
| 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 |
/** |
/** |
| 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 |
} |
} |
| 295 |
} |
} |
| 296 |
return $options; |
return $options; |
| 297 |
} |
} |
|
?> |
|