function nodequeue_subqueue_position in Nodequeue 7.3
Same name and namespace in other branches
- 5.2 nodequeue.module \nodequeue_subqueue_position()
- 6.2 nodequeue.module \nodequeue_subqueue_position()
- 7.2 nodequeue.module \nodequeue_subqueue_position()
Get the position of a node in a subqueue, or FALSE if not found.
1 call to nodequeue_subqueue_position()
- nodequeue_queue_position in ./
nodequeue.module - Get the position of a node in a queue; this queue MUST have only one subqueue or the results of this function will be unpredictable.
File
- ./
nodequeue.module, line 1615 - Maintains queues of nodes in arbitrary order.
Code
function nodequeue_subqueue_position($sqid, $nid) {
return db_query("SELECT position FROM {nodequeue_nodes} WHERE sqid = :sqid AND nid = :nid", array(
':sqid' => $sqid,
':nid' => $nid,
))
->fetchField();
}