From 86eeab72df992cbd4c48ca2271deafeaffccb825 Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Mon, 8 Jul 2013 14:20:44 +0530 Subject: [PATCH] CRM-12846, settings metadata spec ---------------------------------------- * CRM-12846: API support for toggling components by storing 'enableComponents' config in settings table http://issues.civicrm.org/jira/browse/CRM-12846 --- settings/Core.setting.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/settings/Core.setting.php b/settings/Core.setting.php index db0e01c214..bba674defb 100644 --- a/settings/Core.setting.php +++ b/settings/Core.setting.php @@ -592,4 +592,25 @@ When enabled, statistics about your CiviCRM installation are reported anonymousl 'description' => "If enabled, contacts with the permission to edit a related contact will inherit that contact's permission to edit other related contacts", 'help_text' => null, ), + + 'enable_components' => array( + 'group_name' => 'CiviCRM Preferences', + 'group' => 'core', + 'name' => 'enable_components', + 'type' => 'Array', + 'quick_form_type' => 'Element', + 'html_type' => 'advmultiselect', + 'html_attributes' => array( + 'size' => 5, + 'style' => 'width:150px', + 'class' => 'advmultiselect', + ), + 'default' => array('CiviEvent', 'CiviContribute', 'CiviMember', 'CiviMail', 'CiviReport', 'CiviCase'), + 'add' => '4.4', + 'title' => 'Enable Components', + 'is_domain' => '1', + 'is_contact' => 0, + 'description' => null, + 'help_text' => null, + ), ); -- 2.25.1