translator = 'example'; $job->translator_context = $job->getTranslator()->getController()->defaultCheckoutSettings(); } } /** * Allows to alter job checkout workflow after the default behavior. * * @param $redirects * List of redirects the user is supposed to be redirected to. * @param $jobs * Array with the translation jobs to be checked out. */ function hook_tmgmt_ui_job_checkout_after_alter(&$redirects, &$jobs) { // Redirect to custom multi-checkout form if there are multple redirects. if (count($redirects) > 2) { $redirects = array('/my/custom/checkout/form/' . implode(',', array_keys($jobs))); } }