/** * @anonym * @service custom_separator write * @param Gpf_Rpc_Params $params * @return Gpf_Rpc_Form */ public function save(Gpf_Rpc_Params $params) { $form = new Gpf_Rpc_Form($params); if (SignupToPrivateCampaigns_Main::getHandlerInstance()->getCampaignsIdsFromString($form->getFieldValue(self::CAMPAIGNS_IDS)) === false) { $form->setErrorMessage('Campaigns IDs must be 8 characters long and be divided by comma!'); return $form; } Gpf_Settings::set(self::CAMPAIGNS_IDS, str_replace(' ', '',$form->getFieldValue(self::CAMPAIGNS_IDS))); $form->setInfoMessage($this->_('Signup To Private Campaigns plugin configuration saved')); return $form; }