You are here

function tmgmt_job_load in Translation Management Tool 7

Loads a translation job.

Parameters

int $tjid: Translation job id.

Return value

TMGMTJob Loaded translation job entity.

Related topics

16 calls to tmgmt_job_load()
TMGMTCRUDTestCase::testJobs in tests/tmgmt.crud.test
Test crud operations of jobs.
TMGMTEntitySourcePluginController::saveTranslation in sources/entity/tmgmt_entity.plugin.inc
Saves a translation.
TMGMTFileFormatHTML::validateImport in translators/file/tmgmt_file.format.html.inc
Validates that the given file is valid and can be imported.
TMGMTFileformatXLIFF::import in translators/file/tmgmt_file.format.xliff.inc
Converts an exported file content back to the translated data.
TMGMTFileformatXLIFF::validateImport in translators/file/tmgmt_file.format.xliff.inc
Validates that the given file is valid and can be imported.

... See full list

File

./tmgmt.module, line 335
Main module file for the Translation Management module.

Code

function tmgmt_job_load($tjid) {
  $jobs = tmgmt_job_load_multiple(array(
    $tjid,
  ), array());
  return $jobs ? reset($jobs) : FALSE;
}