/** * Removes image control value. * * @param integer $themeId * @param string $controlName */ public function resetImageControl($themeId, $controlName) { $controlValue = $this->themeControlValueDao->findByTcNameAndThemeId($controlName, $themeId); if ($controlValue !== null) { $this->unlinkControlValueImage($controlValue->getValue()); $this->themeControlValueDao->delete($controlValue); } $curentValue = json_decode(OW::getConfig()->getValue('base', 'master_page_theme_info'), true); unset($curentValue[$themeId][$controlName]); OW::getConfig()->saveConfig('base', 'master_page_theme_info', json_encode($curentValue)); $this->updateCustomCssFile($themeId); }