function tmgmt_ui_redirect_queue_destination in Translation Management Tool 7
Returns the redirect queue destination.
This is the final destination after all queue items have been processed.
Parameters
$destination: The default destination that should be returned if none exists.
Return value
The stored destination if defined, otherwise the passed in default destination.
2 calls to tmgmt_ui_redirect_queue_destination()
- tmgmt_job_form_submit in ui/
includes/ tmgmt_ui.pages.inc - Submit callback for the job checkout form.
- 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 1074 - Common Translation managment UI.
Code
function tmgmt_ui_redirect_queue_destination($destination = NULL) {
if (!empty($_SESSION['tmgmt_ui']['destination'])) {
$destination = $_SESSION['tmgmt_ui']['destination'];
unset($_SESSION['tmgmt_ui']['destination']);
return $destination;
}
return $destination;
}