You are here

public function TMGMTJob::rejected in Translation Management Tool 7

Sets the state of the job to 'rejected'.

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 617

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function rejected($message = NULL, $variables = array(), $type = 'error') {
  if (!isset($message)) {
    $message = 'The translation job has been rejected by the translation provider.';
  }
  return $this
    ->setState(TMGMT_JOB_STATE_REJECTED, $message, $variables, $type);
}