You are here

public function TMGMTJobItem::active in Translation Management Tool 7

Sets the state of the job item to 'active'.

File

entity/tmgmt.entity.job_item.inc, line 440

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function active($message = NULL, $variables = array(), $type = 'status') {
  if (!isset($message)) {
    $uri = $this
      ->getSourceUri();
    $message = 'The translation for !source is now being processed.';
    $variables = array(
      '!source' => l($this
        ->getSourceLabel(), $uri['path']),
    );
  }
  return $this
    ->setState(TMGMT_JOB_ITEM_STATE_ACTIVE, $message, $variables, $type);
}