You are here

function tmgmt_ui_redirect_queue_dequeue in Translation Management Tool 7

Dequeues one redirect in the queue and returns that.

Return value

A redirect URL or NULL if the queue is empty.

6 calls to tmgmt_ui_redirect_queue_dequeue()
TMGMTEntitySourceUIController::overviewFormSubmit in sources/entity/ui/tmgmt_entity_ui.ui.inc
tmgmt_job_form_submit in ui/includes/tmgmt_ui.pages.inc
Submit callback for the job checkout form.
tmgmt_node_ui_checkout_multiple_action in sources/node/ui/tmgmt_node_ui.module
Action to do multistep checkout for translations.
tmgmt_rules_job_checkout in ./tmgmt.rules.inc
Rules callback to redirect to a translation job.
tmgmt_ui_job_checkout_and_redirect in ui/tmgmt_ui.module
Attempts to checkout a number of jobs and prepare the necessary redirects.

... See full list

File

ui/tmgmt_ui.module, line 1102
Common Translation managment UI.

Code

function tmgmt_ui_redirect_queue_dequeue() {
  if (!empty($_SESSION['tmgmt_ui']['redirect_queue'])) {
    return array_shift($_SESSION['tmgmt_ui']['redirect_queue']);
  }
}