function common_test_cron

Implements hook_cron().

System module should handle if a module does not catch an exception and keep cron going.

See also

common_test_cron_helper()

2 string references to 'common_test_cron'
common_test_cron_helper_cron in drupal/modules/simpletest/tests/common_test_cron_helper.module
Implements hook_cron().
CronRunTestCase::testCronExceptions in drupal/modules/system/system.test
Make sure exceptions thrown on hook_cron() don't affect other modules.

File

drupal/modules/simpletest/tests/common_test.module, line 283
Helper module for the Common tests.

Code

function common_test_cron() {
  throw new Exception(t('Uncaught exception'));
}