CRM-12846, settings metadata spec
authorDeepak Srivastava <deepak.srivastava@webaccess.co.in>
Mon, 8 Jul 2013 08:50:44 +0000 (14:20 +0530)
committerDeepak Srivastava <deepak.srivastava@webaccess.co.in>
Mon, 8 Jul 2013 08:50:44 +0000 (14:20 +0530)
----------------------------------------
* 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

index db0e01c2143ac188b84cb480e67c42cffd491aad..bba674defb61ffcdce42478113f8607944c01244 100644 (file)
@@ -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,
+  ),
 );