Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.52 diff -u -r1.52 system.install --- modules/system/system.install 1 Dec 2006 17:00:21 -0000 1.52 +++ modules/system/system.install 2 Dec 2006 00:15:40 -0000 @@ -92,6 +92,17 @@ if (is_numeric($cron_last)) { $requirements['cron']['value'] = $t('Last run !time ago', array('!time' => format_interval(time() - $cron_last))); + $requirements['cron']['severity'] = REQUIREMENT_OK; + + if (time() - $cron_last > 3600*24) { + // Cron hasn't run for more than 24 hours. + $requirements['cron']['description'] = $t('Cron has not run recently. Please check the help pages for configuring cron jobs.', array('@url' => 'http://drupal.org/cron')); + $requirements['cron']['severity'] = REQUIREMENT_WARNING; + if (time() - $cron_last > 3600*24*7) { + //Cron hasn't run for more than a week. + $requirements['cron']['severity'] = REQUIREMENT_ERROR; + } + } } else { $requirements['cron'] = array(