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

/**
totten's avatar
totten committed
35 36 37 38 39 40 41 42
 * Settings metadata file
 */

return array(
  'is_enabled' => array(
    '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 51
    'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled'),
    'help_link' => ['page' => 'Multi Site Installation', 'resource' => 'wiki'],
totten's avatar
totten committed
52
    'help_text' => NULL,
totten's avatar
totten committed
53 54 55 56 57
  ),
  'domain_group_id' => array(
    '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 61
    'html_type' => 'entity_reference',
    'entity_reference_options' => ['entity' => 'group', 'select' => array('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,
totten's avatar
totten committed
68 69 70 71 72
  ),
  'event_price_set_domain_id' => array(
    '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,
totten's avatar
totten committed
81 82 83 84 85 86
  ),
  'uniq_email_per_site' => array(
    '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,
totten's avatar
totten committed
94
  ),
95
);