+ // save components to be enabled
+ if (array_key_exists('enableComponents', $params)) {
+ CRM_Core_BAO_Setting::setItem($params['enableComponents'],
+ CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,'enable_components');
+
+ // unset params by emptying the values, so while retrieving we can detect and load from settings table
+ // instead of config-backend for backward compatibility. We could use unset() in later releases.
+ $params['enableComponents'] = $params['enableComponentIDs'] = array();
+ }
+