Merge pull request #15890 from civicrm/5.20
[civicrm-core.git] / settings / Event.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035 16 */
f5e8cb7b 17
18/**
6a488035
TO
19 * Settings metadata file
20 */
dfe1f88a
CW
21return [
22 'enable_cart' => [
389bcebf 23 'name' => 'enable_cart',
24 'group_name' => 'Event Preferences',
f167c7a9 25 'settings_pages' => ['event' => ['weight' => 10]],
389bcebf 26 'group' => 'event',
007e3bdc 27 'type' => 'Boolean',
f5e8cb7b 28 'quick_form_type' => 'CheckBox',
007e3bdc
TO
29 'default' => '0',
30 'add' => '4.1',
f5e8cb7b 31 'title' => ts('Use Shopping Cart Style Event Registration'),
389bcebf 32 'is_domain' => 1,
007e3bdc 33 'is_contact' => 0,
f5e8cb7b 34 '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'),
35 'help_text' => '',
969afb18 36 'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'],
dfe1f88a
CW
37 ],
38 'show_events' => [
aaffa79f 39 'name' => 'show_events',
40 'group_name' => 'Event Preferences',
41 'group' => 'event',
f167c7a9 42 'settings_pages' => ['event' => ['weight' => 20]],
aaffa79f 43 'type' => 'Integer',
f5e8cb7b 44 'quick_form_type' => 'Select',
aaffa79f 45 'default' => 10,
46 'add' => '4.5',
f5e8cb7b 47 'title' => ts('Dashboard entries'),
aaffa79f 48 'html_type' => 'select',
49 'is_domain' => 1,
50 'is_contact' => 0,
f5e8cb7b 51 'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
aaffa79f 52 'help_text' => NULL,
f5e8cb7b 53 'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::getDashboardEntriesCount'],
dfe1f88a
CW
54 ],
55];