/** * */ public function Save($pa_options = null) { $this->view->setVar('plugin_config', $this->opo_plugin_config); if (isset($this->opa_ui_info['spam_protection']) && $this->opa_ui_info['spam_protection'] ? 1 : 0) { // Check SPAM-preventing security question if ($this->request->getParameter('security', pInteger) != $this->request->getParameter('sum', pInteger)) { $this->notification->addNotification(_t("Please correctly answer the security question."), __NOTIFICATION_TYPE_ERROR__); $this->Edit($_REQUEST); return; } } if (isset($this->opa_ui_info['terms_and_conditions']) && $this->opa_ui_info['terms_and_conditions'] ? 1 : 0) { // Check terms and conditions checkbox if ($this->request->getParameter('iAgreeToTerms', pInteger) != 1) { $this->notification->addNotification(_t("You must agree to the terms and conditions before proceeding."), __NOTIFICATION_TYPE_ERROR__); $this->Edit($_REQUEST); return; } } $this->request->setParameter('type_id', $this->_getTypeIDForUI($this->opo_instance)); return parent::Save(array('ui' => $this->ops_ui_code)); }
/** * */ public function Save($pa_options = null) { $this->view->setVar('plugin_config', $this->opo_plugin_config); #$this->request->setParameter('type_id', $this->_getTypeIDForUI($this->opo_instance)); return parent::Save(array('ui' => $this->ops_ui_code)); }