Merge pull request #14981 from eileenmcnaughton/load_extract
[civicrm-core.git] / settings / Event.setting.php
index 70d0ddb76769f75241b8ad13b11dd3ed644a87df..f3584cca0c39ace37633096aa4144fac7cd8e5a7 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2019
  */
 
 /**
  * Settings metadata file
  */
-return array(
-  'enable_cart' => array(
+return [
+  'enable_cart' => [
     'name' => 'enable_cart',
     'group_name' => 'Event Preferences',
+    'settings_pages' => ['event' => ['weight' => 10]],
     'group' => 'event',
     'type' => 'Boolean',
     'quick_form_type' => 'CheckBox',
@@ -48,12 +49,13 @@ return array(
     'is_contact' => 0,
     'description' => ts('This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a "cart" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it'),
     'help_text' => '',
-    'help_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'],
-  ),
-  'show_events' => array(
+    'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'],
+  ],
+  'show_events' => [
     'name' => 'show_events',
     'group_name' => 'Event Preferences',
     'group' => 'event',
+    'settings_pages' => ['event' => ['weight' => 20]],
     'type' => 'Integer',
     'quick_form_type' => 'Select',
     'default' => 10,
@@ -65,5 +67,5 @@ return array(
     'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
     'help_text' => NULL,
     'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::getDashboardEntriesCount'],
-  ),
-);
+  ],
+];