phpcs - Fix error, "Expected 1 newline at end of file; XXX found".
[civicrm-core.git] / CRM / Admin / Form / Preferences / Multisite.php
index 92c8c69fbfb82a816617943a945f34ac7593b819..855d374d114be81785e2fe33a019e30a46829de2 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $
  *
  */
  *
  */
 class CRM_Admin_Form_Preferences_Multisite extends CRM_Admin_Form_Preferences {
-  function preProcess() {
+  public function preProcess() {
     $msDoc = CRM_Utils_System::docURL2('Multi Site Installation', NULL, NULL, NULL, NULL, "wiki");
     CRM_Utils_System::setTitle(ts('Multi Site Settings'));
     $this->_varNames = array(
-      CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME =>
-      array(
+      CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME => array(
         'is_enabled' => array(
           'html_type' => 'checkbox',
           'title' => ts('Enable Multi Site Configuration'),
           'weight' => 1,
-          'description' => ts('Multi Site provides support for sharing a single CiviCRM database among multiple sites.') . ' ' . $msDoc,
+          'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled') . ' ' . $msDoc,
         ),
-        'uniq_email_per_site' => array(
+        /** Remove this checkbox until some one knows what this setting does
+          'uniq_email_per_site' => array(
           'html_type' => 'checkbox',
           'title' => ts('Ensure multi sites have a unique email per site'),
           'weight' => 2,
           'description' => NULL,
         ),
+         */
         'domain_group_id' => array(
-          'html_type' => 'text',
-          'title' => ts('Parent group for this domain'),
+          'html_type' => 'entity_reference',
+          'title' => ts('Domain Group'),
           'weight' => 3,
-          'description' => ts('Enter the group ID (civicrm_group.id).'),
+          'options' => array('entity' => 'group', 'select' => array('minimumInputLength' => 0)),
+          'description' => ts('Contacts created on this site are added to this group'),
         ),
+        /** Remove this checkbox until some one knows what this setting does
         'event_price_set_domain_id' => array(
           'html_type' => 'text',
           'title' => ts('Domain for event price sets'),
           'weight' => 4,
           'description' => NULL,
         ),
+        */
       ),
     );
 
     parent::preProcess();
   }
 }
-