/** * Save changes to plugin settings. */ function saveSettings($args, &$request) { $this->validate(); $plugin =& $this->getPlugin(); $plugin->import('ZendSearchSettingsForm'); $zendSearchSettingsForm = new ZendSearchSettingsForm(ZEND_SEARCH_PLUGIN_NAME); $zendSearchSettingsForm->initData(); $zendSearchSettingsForm->readInputData(); if ($zendSearchSettingsForm->validate()) { $zendSearchSettingsForm->execute(); $request->redirect(null, 'index'); } else { $this->setupTemplate($request, true); $zendSearchSettingsForm->display(); } }
/** * Save changes to plugin settings. */ function saveSettings() { $this->validate(); $plugin =& $this->getPlugin(); $plugin->import('ZendSearchSettingsForm'); $zendSearchSettingsForm = new ZendSearchSettingsForm(); $zendSearchSettingsForm->initData(); $zendSearchSettingsForm->readInputData(); if ($zendSearchSettingsForm->validate()) { $zendSearchSettingsForm->execute(); Request::redirect(null, 'index'); } else { $this->setupTemplate(true); $zendSearchSettingsForm->display(); } }