public function edit($id, $params = array(), $locale) { if (parent::edit($id, $params = array())) { if ($_POST) { $data['from'] = $this->input->post('sender_name'); $data['from_email'] = $this->input->post('from_email'); $data['theme'] = $this->input->post('mail_theme'); $data['type'] = $this->input->post('mail_type'); $data['user_message'] = $this->input->post('userMailText'); $data['user_message_active'] = $this->input->post('userMailTextRadio'); $data['admin_message'] = $this->input->post('adminMailText'); $data['admin_message_active'] = $this->input->post('adminMailTextRadio'); $data['admin_email'] = $this->input->post('admin_email'); $data['description'] = $this->input->post('mail_desc'); $this->cmsemail_model->edit($id, $data, $locale); } else { $this->cmsemail_model->edit($id, $this->data_model, $locale); } return TRUE; } else { return FALSE; } }