You are here

function mob_queue_queue_info_alter in Drush Queue Handling 8

Implements hook_queue_info_alter().

File

./mob_queue.module, line 11
Module for the cron queue management - a handy queue tool

Code

function mob_queue_queue_info_alter(&$queues) {
  $mob_queues = \Drupal::config('mob_queue.settings')
    ->get('mob_qinfo');
  foreach ($queues as $name => $queue) {
    if (isset($mob_queues[$name]) && $mob_queues[$name]) {
      if (isset($queue['cron'])) {
        unset($queues[$name]['cron']);
      }
    }
  }
}