You are here

mob_queue.module in Drush Queue Handling 8

Same filename and directory in other branches
  1. 7 mob_queue.module

Module for the cron queue management - a handy queue tool

File

mob_queue.module
View source
<?php

/**
 * @file
 * Module for the cron queue management - a handy queue tool
 */

/**
 * Implements hook_queue_info_alter().
 */
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']);
      }
    }
  }
}

Functions