Skip to content

Commit

Permalink
Revert "Removing line used to get configuration array"
Browse files Browse the repository at this point in the history
This reverts commit eb12c6d.
  • Loading branch information
Rohan Katkar committed Jun 19, 2014
1 parent f2d5e71 commit 69c22cd
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions CRM/Admin/Form/Preferences/Contribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -85,36 +71,6 @@ function buildQuickForm() {
);
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;
}
}


Expand Down

0 comments on commit 69c22cd

Please sign in to comment.