You are here

function entityqueue_queue_load in Entityqueue 7

Loads a queue.

Parameters

string $name: The machine name of the queue (bundle) to be loaded.

Return value

EntityQueue|false A EntityQueue object in the same format as expected by entityqueue_queue_save(), or FALSE if the queue doesn't exist.

5 calls to entityqueue_queue_load()
entityqueue_queue_delete in ./entityqueue.module
Deletes a queue.
entityqueue_subqueue_remove_item in ./entityqueue.module
Removes an item from a subqueue.
EntityReferenceBehavior_EntityQueue::presave in plugins/entityreference/behavior/EntityReferenceBehavior_EntityQueue.class.php
Overrides EntityReference_BehaviorHandler_Abstract::presave().
EntityReferenceBehavior_EntityQueue::validate in plugins/entityreference/behavior/EntityReferenceBehavior_EntityQueue.class.php
Overrides EntityReference_BehaviorHandler_Abstract::validate().
EntityReference_SelectionHandler_EntityQueue::__construct in plugins/entityreference/selection/EntityReference_SelectionHandler_EntityQueue.class.php
Constructs the EntityQueue selection handler.
1 string reference to 'entityqueue_queue_load'
entityqueue_schema in ./entityqueue.install
Implements hook_schema().

File

./entityqueue.module, line 209
Allows users to collect entities in arbitrarily ordered lists.

Code

function entityqueue_queue_load($name) {
  $queues = entityqueue_queue_load_multiple(array(
    $name,
  ));
  return isset($queues[$name]) ? $queues[$name] : FALSE;
}