You are here

function tmgmt_ui_checkout_info in Translation Management Tool 7

Helper function for retrieving the rendered job checkout information.

1 call to tmgmt_ui_checkout_info()
tmgmt_job_form in ui/includes/tmgmt_ui.pages.inc
Entity API form the job entity.

File

ui/includes/tmgmt_ui.pages.inc, line 805
Provides page callbacks and form functions for the Translation Management Tool User Interface module.

Code

function tmgmt_ui_checkout_info(TMGMTJob $job) {
  $translator = $job
    ->getTranslator();

  // The translator might have been disabled or removed.
  if (!$translator) {
    return array();
  }
  $controller = tmgmt_translator_ui_controller($translator->plugin);
  return $controller
    ->checkoutInfo($job);
}