private function formEdit(GWF_HelpdeskFAQ $faq) { $data = array('lang' => array(GWF_Form::SELECT, GWF_LangSelect::single(1, 'lang', $faq->getVar('hdf_langid')), $this->module->lang('th_lang'), $this->module->lang('tt_lang')), 'question' => array(GWF_Form::STRING, $faq->getVar('hdf_question'), $this->module->lang('th_question')), 'answer' => array(GWF_Form::MESSAGE, $faq->getVar('hdf_answer'), $this->module->lang('th_answer')), 'delete_confirm' => array(GWF_Form::CHECKBOX, false, $this->module->lang('th_confirm_del')), 'delete_confirm_v' => array(GWF_Form::VALIDATOR), 'add' => array(GWF_Form::SUBMITS, array('edit' => $this->module->lang('btn_edit_faq'), 'delete' => $this->module->lang('btn_rem_faq')))); return new GWF_Form($this, $data); }