From 69c22cd508f329bdb0de2f2fce95136f3b9a11c8 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Thu, 19 Jun 2014 15:48:29 +0530 Subject: [PATCH] Revert "Removing line used to get configuration array" This reverts commit eb12c6d02725226412951ae9c64366e3367a26ee. --- CRM/Admin/Form/Preferences/Contribute.php | 44 ----------------------- 1 file changed, 44 deletions(-) diff --git a/CRM/Admin/Form/Preferences/Contribute.php b/CRM/Admin/Form/Preferences/Contribute.php index d807d96a84..f864de400b 100644 --- a/CRM/Admin/Form/Preferences/Contribute.php +++ b/CRM/Admin/Form/Preferences/Contribute.php @@ -5,20 +5,6 @@ * */ class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences { - /** - * gives array of contribution settings of administer form for Invoice - * - * @access public - **/ - public $_defaults; - - /** - * Function to process the form - * - * @access public - * - * @return void - */ function preProcess() { CRM_Utils_System::setTitle(ts('CiviContribute Component Settings')); $this->_varNames = array( @@ -85,36 +71,6 @@ class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences { ); parent::buildQuickForm(); } - - /** - * process the form after the input has been submitted and validated - * - * @access public - * - * @return void - */ - public function postProcess() { - // store the submitted values in an array - $params = $this->controller->exportValues($this->_name); - $setInvoiceSettings = CRM_Core_BAO_Setting::setItem($params, CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings'); - } - - /** - * This function sets the default values for the form. - * default values are retrieved from the database - * - * @access public - * - * @return void - */ - function setDefaultValues() { - if (!$this->_defaults) { - $this->_defaults = array(); - $contributionSettings = $this->_config->contribution_invoice_settings; - $this->_defaults = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings'); - } - return $this->_defaults; - } } -- 2.25.1