private function getForm(GWF_Group $group) { $buttons = array('edit' => $this->module->lang('btn_edit'), 'delete' => $this->module->lang('btn_delete')); $data = array('name' => array(GWF_Form::STRING, $group->getVar('group_name'), $this->module->lang('th_name')), 'join' => array(GWF_Form::SELECT, $this->module->selectJoinType($group->getJoinMode()), $this->module->lang('th_join')), 'view' => array(GWF_Form::SELECT, $this->module->selectViewType($group->getVisibleMode()), $this->module->lang('th_view')), 'vis_grp' => array(GWF_Form::CHECKBOX, $group->isOptionEnabled(GWF_Group::VISIBLE_GROUP), $this->module->lang('th_vis_grp'), $this->module->lang('tt_vis_grp')), 'vis_mem' => array(GWF_Form::CHECKBOX, $group->isOptionEnabled(GWF_Group::VISIBLE_MEMBERS), $this->module->lang('th_vis_mem'), $this->module->lang('tt_vis_mem')), 'cmd' => array(GWF_Form::SUBMITS, $buttons)); return new GWF_Form($this, $data); }