function entityqueue_subqueue_load in Entityqueue 7
Loads a subqueue by name or by ID.
Parameters
string|int $name: The subqueue_id or machine name of a EntitySubqueue.
Return value
EntitySubqueue|false An EntitySubqueue object.
1 call to entityqueue_subqueue_load()
2 string references to 'entityqueue_subqueue_load'
- entityqueue_entity_info in ./
entityqueue.module - Implements hook_entity_info().
- MultipleEntityQueueHandler::subqueueForm in plugins/
entityqueue/ handler/ MultipleEntityQueueHandler.class.php - Generates an add/edit subqueue form for this handler.
File
- ./
entityqueue.module, line 542 - Allows users to collect entities in arbitrarily ordered lists.
Code
function entityqueue_subqueue_load($name) {
$subqueues = entityqueue_subqueue_load_multiple(array(
$name,
));
return $subqueues ? reset($subqueues) : FALSE;
}