private function formAdd() { $is_guest = $this->post->isOptionEnabled(GWF_ForumPost::GUEST_VIEW); $data = array(); $data['file'] = array(GWF_Form::FILE, '', $this->module->lang('th_attach_file')); $data['guest_view'] = array(GWF_Form::CHECKBOX, $is_guest, $this->module->lang('th_guest_view')); $data['guest_down'] = array(GWF_Form::CHECKBOX, $is_guest, $this->module->lang('th_guest_down')); $data['add'] = array(GWF_Form::SUBMIT, $this->module->lang('btn_add_attach')); return new GWF_Form($this, $data); }