Skip to content
Snippets Groups Projects
Commit 510645fa authored by eileen's avatar eileen
Browse files

[Form cleanup] remove form classes & tpls for Event Component settings & Multisite

The forms have no details over & above the generic form so we can & should use that
parent 1da76100
Branches
Tags
No related merge requests found
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*/
/**
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2019
*/
/**
* This class displays campaign preferences.
*/
class CRM_Admin_Form_Preferences_Campaign extends CRM_Admin_Form_Preferences {
protected $_settings = [
'tag_unconfirmed' => CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME,
'petition_contacts' => CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME,
];
}
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*/
/**
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2019
*/
/**
* This class generates form components for multi site preferences.
*/
class CRM_Admin_Form_Preferences_Multisite extends CRM_Admin_Form_Preferences {
protected $_settings = [
'is_enabled' => CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME,
'domain_group_id' => CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME,
];
}
......@@ -72,7 +72,7 @@
<item>
<path>civicrm/admin/setting/preferences/campaign</path>
<title>CiviCampaign Component Settings</title>
<page_callback>CRM_Admin_Form_Preferences_Campaign</page_callback>
<page_callback>CRM_Admin_Form_Generic</page_callback>
<desc>Configure global CiviCampaign behaviors.</desc>
<adminGroup>CiviCampaign</adminGroup>
<weight>10</weight>
......
......@@ -550,7 +550,7 @@
<item>
<path>civicrm/admin/setting/preferences/multisite</path>
<title>Multi Site Settings</title>
<page_callback>CRM_Admin_Form_Preferences_Multisite</page_callback>
<page_callback>CRM_Admin_Form_Generic</page_callback>
<adminGroup>System Settings</adminGroup>
<icon>admin/small/36.png</icon>
<weight>130</weight>
......@@ -558,7 +558,7 @@
<item>
<path>civicrm/admin/setting/preferences/campaign</path>
<title>CiviCampaign Component Settings</title>
<page_callback>CRM_Admin_Form_Preferences_Campaign</page_callback>
<page_callback>CRM_Admin_Form_Generic</page_callback>
</item>
<item>
<path>civicrm/admin/setting/preferences/event</path>
......
......@@ -49,6 +49,7 @@ return [
'is_contact' => 0,
'description' => ts('If set, new contacts that are created when signing a petition are assigned a tag of this name.'),
'help_text' => '',
'settings_pages' => ['campaign' => ['weight' => 10]],
],
'petition_contacts' => [
'group_name' => 'Campaign Preferences',
......@@ -63,6 +64,7 @@ return [
'is_contact' => 0,
'description' => ts('All contacts that have signed a CiviCampaign petition will be added to this group. The group will be created if it does not exist (it is required for email verification).'),
'help_text' => '',
'settings_pages' => ['campaign' => ['weight' => 20]],
],
];
......@@ -50,6 +50,7 @@ return [
'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled'),
'documentation_link' => ['page' => 'Multi Site Installation', 'resource' => 'wiki'],
'help_text' => NULL,
'settings_pages' => ['multisite' => ['weight' => 10]],
],
'domain_group_id' => [
'group_name' => 'Multi Site Preferences',
......@@ -65,6 +66,7 @@ return [
'is_contact' => 0,
'description' => ts('Contacts created on this site are added to this group'),
'help_text' => NULL,
'settings_pages' => ['multisite' => ['weight' => 20]],
],
'event_price_set_domain_id' => [
'group_name' => 'Multi Site Preferences',
......
{*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}
{*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment