cron_queue_test.module 330 B

123456789101112131415
  1. <?php
  2. /**
  3. * Implements hook_cron_queue_info().
  4. */
  5. function cron_queue_test_cron_queue_info() {
  6. $queues['cron_queue_test_exception'] = array(
  7. 'worker callback' => 'cron_queue_test_exception',
  8. );
  9. return $queues;
  10. }
  11. function cron_queue_test_exception($item) {
  12. throw new Exception('That is not supposed to happen.');
  13. }