| Versionen | |
|---|---|
| drupal7 | public static DrupalQueue::get($name) |
Get a queue object for a given name.
$name Arbitrary string. The name of the queue to work with.
The queue object for a given name.
modules/
<?php
public static function get($name) {
static $queues;
if (!isset($queues[$name])) {
$class = variable_get('queue_module_' . $name, 'System') . 'Queue';
$queues[$name] = new $class($name);
}
return $queues[$name];
}
?>
Kommentare
Kommentar hinzufügen