You are here

function nodequeue_queue_down in Nodequeue 5.2

Same name and namespace in other branches
  1. 5 nodequeue.module \nodequeue_queue_down()
  2. 6.2 nodequeue.module \nodequeue_queue_down()
  3. 7.3 nodequeue.module \nodequeue_queue_down()
  4. 7.2 nodequeue.module \nodequeue_queue_down()

Move a position within a subqueue down by one.

2 calls to nodequeue_queue_down()
nodequeue_admin_down in ./nodequeue.module
Page callback to move an item down in a queue. This will be used only if javascript is disabled in the client, and is a fallback technique.
nodequeue_admin_up in ./nodequeue.module
Page callback to move an item up in a queue. This will be used only if javascript is disabled in the client, and is a fallback technique.

File

./nodequeue.module, line 2019

Code

function nodequeue_queue_down($subqueue, $position) {
  if ($position < 1 || $position >= $subqueue->count) {
    return;
  }
  nodequeue_queue_swap($subqueue, $position + 1, $position);
}