You are here

function queue_mail_queue_info_alter in Queue Mail 8

Implements hook_queue_info_alter().

File

./queue_mail.module, line 60
The Queue Mail module.

Code

function queue_mail_queue_info_alter(&$queues) {
  $queue_time = \Drupal::config('queue_mail.settings')
    ->get('queue_mail_queue_time');
  if (!empty($queue_time)) {
    $queues['queue_mail']['cron']['time'] = $queue_time;
  }
}