<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
unset($params['autocompleteContactReference']);
}
+ // 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();
+ }
+
// save checksum timeout
if (CRM_Utils_Array::value('checksumTimeout', $params)) {
CRM_Core_BAO_Setting::setItem($params['checksumTimeout'],