function common_test_cron
Same name in other branches
- 7.x modules/simpletest/tests/common_test.module \common_test_cron()
- 8.9.x core/modules/system/tests/modules/common_test/common_test.module \common_test_cron()
- 10 core/modules/system/tests/modules/common_test/common_test.module \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()
File
-
core/
modules/ system/ tests/ modules/ common_test/ common_test.module, line 196
Code
function common_test_cron() {
throw new Exception('Uncaught exception');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.