Multisite.setting.php 3.5 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
 +--------------------------------------------------------------------+
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
31
 * @copyright CiviCRM LLC (c) 2004-2019
totten's avatar
totten committed
32
 */
33 34

/**
totten's avatar
totten committed
35 36 37
 * Settings metadata file
 */

38 39
return [
  'is_enabled' => [
totten's avatar
totten committed
40 41 42
    'group_name' => 'Multi Site Preferences',
    'group' => 'multisite',
    'name' => 'is_enabled',
43 44 45
    'title' => ts('Enable Multi Site Configuration'),
    'html_type' => 'checkbox',
    'type' => 'Boolean',
46
    'default' => '0',
totten's avatar
totten committed
47 48 49
    'add' => '4.1',
    'is_domain' => 1,
    'is_contact' => 0,
50
    'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled'),
eileen's avatar
eileen committed
51
    'documentation_link' => ['page' => 'Multi Site Installation', 'resource' => 'wiki'],
totten's avatar
totten committed
52
    'help_text' => NULL,
53 54
  ],
  'domain_group_id' => [
totten's avatar
totten committed
55 56 57
    'group_name' => 'Multi Site Preferences',
    'group' => 'multisite',
    'name' => 'domain_group_id',
58
    'title' => ts('Multisite Domain Group'),
totten's avatar
totten committed
59
    'type' => 'Integer',
60
    'html_type' => 'entity_reference',
61
    'entity_reference_options' => ['entity' => 'Group', 'select' => ['minimumInputLength' => 0]],
62
    'default' => '0',
totten's avatar
totten committed
63 64 65
    'add' => '4.1',
    'is_domain' => 1,
    'is_contact' => 0,
66
    'description' => ts('Contacts created on this site are added to this group'),
totten's avatar
totten committed
67
    'help_text' => NULL,
68 69
  ],
  'event_price_set_domain_id' => [
totten's avatar
totten committed
70 71 72
    'group_name' => 'Multi Site Preferences',
    'group' => 'multisite',
    'name' => 'event_price_set_domain_id',
73
    'title' => 'Domain Event Price Set',
totten's avatar
totten committed
74
    'type' => 'Integer',
75
    'default' => '0',
totten's avatar
totten committed
76 77 78 79
    'add' => '4.1',
    'is_domain' => 1,
    'is_contact' => 0,
    'description' => '',
totten's avatar
totten committed
80
    'help_text' => NULL,
81 82
  ],
  'uniq_email_per_site' => [
totten's avatar
totten committed
83 84 85 86
    'group_name' => 'Multi Site Preferences',
    'group' => 'multisite',
    'name' => 'uniq_email_per_site',
    'type' => 'Integer',
87
    'title' => 'Unique Email per Domain?',
88
    'default' => '0',
totten's avatar
totten committed
89 90 91 92
    'add' => '4.1',
    'is_domain' => 1,
    'is_contact' => 0,
    'description' => '',
totten's avatar
totten committed
93
    'help_text' => NULL,
94 95
  ],
];