public function assign_to_object($form, $object, $name, $data) { parent::assign_to_object($form, $object, $name, $data); $value = $object[$name]; if (!empty($value)) { if (!isset($this->data['htmlpurifier']) || $this->data['htmlpurifier']) { $object[$name] = Text_Process::process($value, 'htmlpurifier'); } else { $object[$name] = $value; } } }
protected function stdunset($data) { $res = parent::stdunset($data); return $this->punset($res, 'formats', 'switch style', 'extra_formats', 'teaser split'); }