You are here

function background_process_cron_queue_info in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.module \background_process_cron_queue_info()
  2. 6 background_process.module \background_process_cron_queue_info()
  3. 7.2 background_process.module \background_process_cron_queue_info()

Implements hook_cron_queue_info().

File

./background_process.module, line 315

Code

function background_process_cron_queue_info() {
  $queues['background_process'] = array(
    'worker callback' => '_background_process_queue',
  );
  $background_process_queues = variable_get('background_process_queues', array());
  foreach ($background_process_queues as $queue_name) {
    $queues['bgp:' . $queue_name] = array(
      'worker callback' => '_background_process_queue',
    );
  }
  return $queues;
}