You are here

function tmgmt_message_load in Translation Management Tool 7

Loads a translation job message.

Parameters

$mid: A job message id.

Return value

TMGMTMessage A job message entity or FALSE if the query didn't yield any results.

Related topics

File

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

Code

function tmgmt_message_load($mid) {

  // Avoid collision with the message module because this looks like the module
  // implements hook_ENTITY_TYPE_load() for message.
  if (!is_array($mid)) {
    $jobs = tmgmt_message_load_multiple(array(
      $mid,
    ));
    return $jobs ? reset($jobs) : FALSE;
  }
}