summaryrefslogtreecommitdiff
path: root/modules/system/tests/cron_queue_test.module
blob: e95c6b6af8593d8c8c72d6c4c335607fd62acca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Implements hook_cron_queue_info().
 */
function cron_queue_test_cron_queue_info() {
  $queues['cron_queue_test_exception'] = array(
    'worker callback' => 'cron_queue_test_exception',
  );
  return $queues;
}

function cron_queue_test_exception($item) {
  throw new Exception('That is not supposed to happen.');
}