public function postProcess() { parent::postProcess(); // handle logging // FIXME: do it only if the setting changed require_once 'CRM/Logging/Schema.php'; $values = $this->exportValues(); $logging = new CRM_Logging_Schema(); $values['logging'] ? $logging->enableLogging() : $logging->disableLogging(); }
public function postProcess() { // if extensions url is set, lets clear session status messages to avoid // a potentially spurious message which might already have been set. This // is a bit hackish // CRM-10629 $session = CRM_Core_Session::singleton(); $session->getStatus(TRUE); parent::postProcess(); parent::rebuildMenu(); }
public function postProcess() { $values = $this->exportValues(); // store settings $expected_values = array('hh_mode', 'hh_head_mode', 'hh_member_relation', 'hh_head_relation'); foreach ($expected_values as $key) { if (isset($values[$key])) { CRM_Householdmerge_Logic_Configuration::setConfigValue($key, $values[$key]); } } parent::postProcess(); }
public function postProcess() { // store the submitted values in an array $params = $this->controller->exportValues($this->_name); // get current logging status $values = $this->exportValues(); parent::postProcess(); $config = CRM_Core_Config::singleton(); if ($config->logging != $values['logging']) { $logging = new CRM_Logging_Schema(); if ($values['logging']) { $config->logging = TRUE; $logging->enableLogging(); } else { $config->logging = FALSE; $logging->disableLogging(); } } }
public function postProcess() { parent::postProcess(); parent::rebuildMenu(); }
public function postProcess() { // store the submitted values in an array $config = CRM_Core_Config::singleton(); $params = $this->controller->exportValues($this->_name); // update upload max size in DB $params['maxImportFileSize'] = CRM_Core_Config_Defaults::formatUnitSize(ini_get('upload_max_filesize')); CRM_Core_BAO_ConfigSetting::create($params); // get current logging status $values = $this->exportValues(); parent::postProcess(); if ($config->logging != $values['logging']) { $logging = new CRM_Logging_Schema(); if ($values['logging']) { $logging->enableLogging(); } else { $logging->disableLogging(); } } }