Event.setting.php 3.27 KB
Newer Older
totten's avatar
totten committed
1 2 3
<?php
/*
 +--------------------------------------------------------------------+
totten's avatar
totten committed
4
 | CiviCRM version 5                                                  |
totten's avatar
totten committed
5
 +--------------------------------------------------------------------+
Seamus Lee's avatar
Seamus Lee committed
6
 | Copyright CiviCRM LLC (c) 2004-2019                                |
totten's avatar
totten committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 | CiviCRM is free software; you can copy, modify, and distribute it  |
 | under the terms of the GNU Affero General Public License           |
 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
 |                                                                    |
 | CiviCRM is distributed in the hope that it will be useful, but     |
 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
 | See the GNU Affero General Public License for more details.        |
 |                                                                    |
 | You should have received a copy of the GNU Affero General Public   |
 | License and the CiviCRM Licensing Exception along                  |
 | with this program; if not, contact CiviCRM LLC                     |
 | at info[AT]civicrm[DOT]org. If you have questions about the        |
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
26
 */
totten's avatar
totten committed
27 28 29 30

/**
 *
 * @package CRM
Seamus Lee's avatar
Seamus Lee committed
31
 * @copyright CiviCRM LLC (c) 2004-2019
totten's avatar
totten committed
32
 */
eileen's avatar
eileen committed
33 34

/**
totten's avatar
totten committed
35 36
 * Settings metadata file
 */
37 38
return [
  'enable_cart' => [
yashodha's avatar
yashodha committed
39 40
    'name' => 'enable_cart',
    'group_name' => 'Event Preferences',
41
    'settings_pages' => ['event' => ['weight' => 10]],
yashodha's avatar
yashodha committed
42
    'group' => 'event',
43
    'type' => 'Boolean',
eileen's avatar
eileen committed
44
    'quick_form_type' => 'CheckBox',
45 46
    'default' => '0',
    'add' => '4.1',
eileen's avatar
eileen committed
47
    'title' => ts('Use Shopping Cart Style Event Registration'),
yashodha's avatar
yashodha committed
48
    'is_domain' => 1,
49
    'is_contact' => 0,
eileen's avatar
eileen committed
50 51
    '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' => '',
eileen's avatar
eileen committed
52
    'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'],
53 54
  ],
  'show_events' => [
55 56 57
    'name' => 'show_events',
    'group_name' => 'Event Preferences',
    'group' => 'event',
58
    'settings_pages' => ['event' => ['weight' => 20]],
59
    'type' => 'Integer',
eileen's avatar
eileen committed
60
    'quick_form_type' => 'Select',
61 62
    'default' => 10,
    'add' => '4.5',
eileen's avatar
eileen committed
63
    'title' => ts('Dashboard entries'),
64 65 66
    'html_type' => 'select',
    'is_domain' => 1,
    'is_contact' => 0,
eileen's avatar
eileen committed
67
    'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
68
    'help_text' => NULL,
eileen's avatar
eileen committed
69
    'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::getDashboardEntriesCount'],
70 71
  ],
];