public function SystemQueue::createQueue

public SystemQueue::createQueue()

Create a queue.

Called during installation and should be used to perform any necessary initialization operations. This should not be confused with the constructor for these objects, which is called every time an object is instantiated to operate on a queue. This operation is only needed the first time a given queue is going to be initialized (for example, to make a new database table or directory to hold tasks for the queue -- it depends on the queue implementation if this is necessary at all).

Overrides DrupalQueueInterface::createQueue

File

modules/system/system.queue.inc, line 276
Queue functionality.

Class

SystemQueue
Default queue implementation.

Code

public function createQueue() {
  // All tasks are stored in a single database table (which is created when
  // Drupal is first installed) so there is nothing we need to do to create
  // a new queue.
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.queue.inc/function/SystemQueue::createQueue/7.x