You are here

public function EntityTranslationDefaultHandler::setOutdated in Entity Translation 7

Overrides EntityTranslationHandlerInterface::setOutdated

See also

EntityTranslationHandlerInterface::setOutdated()

1 call to EntityTranslationDefaultHandler::setOutdated()
EntityTranslationDefaultHandler::entityFormSubmit in includes/translation.handler.inc

File

includes/translation.handler.inc, line 1046
Default translation handler for the translation module.

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

public function setOutdated($outdated) {
  $args = func_get_args();
  if ($outdated) {
    $translations = $this
      ->getTranslations();
    foreach ($translations->data as $langcode => &$translation) {
      if ($langcode != $this
        ->getActiveLanguage()) {
        $translation['translate'] = 1;
      }
    }
    $this
      ->notifyChildren(__FUNCTION__, $args);
  }
}