You are here

function nodequeue_admin_front in Nodequeue 5.2

Page callback to move an item to the front of a queue. This will be used only if javascript is disabled in the client, and is a fallback technique.

1 string reference to 'nodequeue_admin_front'
nodequeue_menu in ./nodequeue.module
Implementation of hook_menu

File

./nodequeue.module, line 1174

Code

function nodequeue_admin_front($queue, $subqueue, $pos) {
  if (!nodequeue_check_token($pos)) {
    return drupal_goto();
  }

  // This function is safe if $pos is out of bounds.
  if (!$queue->reverse) {
    nodequeue_queue_front($subqueue, $pos);
  }
  else {
    nodequeue_queue_back($subqueue, $pos);
  }
  drupal_goto();
}