Form_Field_ValueList::normalize PHP Method

normalize() public method

Normalize POSTed data.
public normalize ( )
    public function normalize()
    {
        $data = $this->get();
        if (is_array($data)) {
            $data = implode($this->separator, $data);
        }
        $data = trim($data, $this->separator);
        if (get_magic_quotes_gpc()) {
            $this->set(stripslashes($data));
        } else {
            $this->set($data);
        }
        return parent::normalize();
    }