main/core/Manager/ContentManager.php
private function resetContent(Content $content, array $translatedContents)
    {
        foreach ($translatedContents as $lang => $translatedContent) {
            $this->updateTranslation($content, $translatedContent, $lang, true);
        }

        $this->updateTranslation($content, $translatedContents['en']);

        return $content;
    }
private function resetContent(Content $content, array $translatedContents)
    {
        foreach ($translatedContents as $lang => $translatedContent) {
            $this->updateTranslation($content, $translatedContent, $lang, true);
        }

        $this->updateTranslation($content, $translatedContents['en']);

        return $content;
    }
private function resetContent ( Content $ content , array $ translatedContents ) { foreach ( $ translatedContents as $ lang => $ translatedContent ) { $ this -> updateTranslation ( $ content , $ translatedContent , $ lang , true ) ; } $ this -> updateTranslation ( $ content , $ translatedContents [ 'en' ] ) ; return $ content ; }
Reset translated values of a content.

@param Content $content            A content entity
@param array   $translatedContents array('en' => array('content' => 'foo', 'title' => 'foo'))

@return \Claroline\CoreBundle\Entity\Content
Reset translated values of a content .