function tmgmt_ui_redirect_queue_set in Translation Management Tool 7
Set a redirect queue that can then be worked through.
Parameters
$redirects: An array of redirect url's to be processed. For example checkout pages as returned by tmgmt_ui_job_checkout_multiple().
$destination: A final destination to go to after the queue has been processed.
5 calls to tmgmt_ui_redirect_queue_set()
- TMGMTEntitySourceUIController::overviewFormSubmit in sources/
entity/ ui/ tmgmt_entity_ui.ui.inc - 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.
- tmgmt_ui_translation_review_form_update_state in ui/
tmgmt_ui.module - Callback for the action at the job item review form.
File
- ui/
tmgmt_ui.module, line 1057 - Common Translation managment UI.
Code
function tmgmt_ui_redirect_queue_set(array $redirects, $destination = NULL) {
$_SESSION['tmgmt_ui']['redirect_queue'] = $redirects;
$_SESSION['tmgmt_ui']['destination'] = $destination;
}