Version 1
[yaffs-website] / vendor / drush / drush / lib / Drush / Queue / Queue6.php
1 <?php
2
3 namespace Drush\Queue;
4
5 class Queue6 extends Queue7 {
6
7   public function __construct() {
8     // Drupal 6 has no core queue capabilities, and thus requires contrib.
9     if (!module_exists('drupal_queue')) {
10       throw new QueueException(dt('The drupal_queue module need to be installed/enabled.'));
11     }
12     else {
13       drupal_queue_include();
14     }
15   }
16
17   /**
18    * {@inheritdoc}
19    */
20   public function getQueues() {
21     if (!isset(static::$queues)) {
22       static::$queues = module_invoke_all('cron_queue_info');
23       drupal_alter('cron_queue_info', static::$queues);
24     }
25     return static::$queues;
26   }
27
28 }