You are here

public function TMGMTJob::submitted in Translation Management Tool 7

Set the state of the job to 'submitted'.

Parameters

$message: The log message to be saved along with the state change.

$variables: (Optional) An array of variables to replace in the message on display.

Return value

TMGMTJob The job entity.

See also

TMGMTJob::addMessage()

File

entity/tmgmt.entity.job.inc, line 551

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function submitted($message = NULL, $variables = array(), $type = 'status') {
  if (!isset($message)) {
    $message = 'The translation job has been submitted.';
  }
  $this
    ->setState(TMGMT_JOB_STATE_ACTIVE, $message, $variables, $type);
}