public function getFormLink() { if (false === ($this->not_linked = WC_Site::getUnlinkedSites(GWF_Session::getUserID()))) { echo GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); return false; } $user = GWF_Session::getUser(); $data = array('siteid' => array(GWF_Form::SELECT, $this->getSelectNotLinked($this->not_linked), $this->module->lang('th_site_name')), 'onsitename' => array(GWF_Form::STRING, $user->getVar('user_name'), $this->module->lang('th_onsite_name')), 'password_email' => array(GWF_Form::STRING, $user->getValidMail(), $this->module->lang('th_email')), 'link' => array(GWF_Form::SUBMIT, $this->module->lang('btn_link'))); return new GWF_Form($this, $data); }