You are here

function tmgmt_ui_job_request_translation in Translation Management Tool 7

Requests translations for a job and prints messages which have happened since then.

Parameters

TMGMTJob $job: The job object for which translations should be requested.

Return value

TRUE if it worked, FALSE if there were any errors of the type error which means that something did go wrong.

2 calls to tmgmt_ui_job_request_translation()
tmgmt_job_form_submit in ui/includes/tmgmt_ui.pages.inc
Submit callback for the job checkout form.
tmgmt_ui_job_checkout_multiple in ui/tmgmt_ui.module
Attempts to check out a number of jobs. Performs a number of checks on each job and also allows to alter the behavior through hooks.

File

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

Code

function tmgmt_ui_job_request_translation(TMGMTJob $job) {

  // Process the translation request.
  $job
    ->requestTranslation();
  return tmgmt_ui_write_request_messages($job);
}