First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
192
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Address.php
Normal file
192
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Address.php
Normal file
|
@ -0,0 +1,192 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for Address Section.
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
|
||||
CRM_Utils_System::setTitle(ts('Settings - Addresses'));
|
||||
|
||||
// Address Standardization
|
||||
$addrProviders = array(
|
||||
'' => '- select -',
|
||||
) + CRM_Core_SelectValues::addressProvider();
|
||||
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array(
|
||||
'address_options' => array(
|
||||
'html_type' => 'checkboxes',
|
||||
'title' => ts('Address Fields'),
|
||||
'weight' => 1,
|
||||
),
|
||||
'address_format' => array(
|
||||
'html_type' => 'textarea',
|
||||
'title' => ts('Display Format'),
|
||||
'description' => NULL,
|
||||
'weight' => 2,
|
||||
),
|
||||
'mailing_format' => array(
|
||||
'html_type' => 'textarea',
|
||||
'title' => ts('Mailing Label Format'),
|
||||
'description' => NULL,
|
||||
'weight' => 3,
|
||||
),
|
||||
'hideCountryMailingLabels' => array(
|
||||
'html_type' => 'YesNo',
|
||||
'title' => ts('Hide Country in Mailing Labels when same as domain country'),
|
||||
'weight' => 4,
|
||||
),
|
||||
),
|
||||
CRM_Core_BAO_Setting::ADDRESS_STANDARDIZATION_PREFERENCES_NAME => array(
|
||||
'address_standardization_provider' => array(
|
||||
'html_type' => 'select',
|
||||
'title' => ts('Provider'),
|
||||
'option_values' => $addrProviders,
|
||||
'weight' => 5,
|
||||
),
|
||||
'address_standardization_userid' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('User ID'),
|
||||
'description' => NULL,
|
||||
'weight' => 6,
|
||||
),
|
||||
'address_standardization_url' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Web Service URL'),
|
||||
'description' => NULL,
|
||||
'weight' => 7,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function setDefaultValues() {
|
||||
$defaults = array();
|
||||
$defaults['address_standardization_provider'] = $this->_config->address_standardization_provider;
|
||||
$defaults['address_standardization_userid'] = $this->_config->address_standardization_userid;
|
||||
$defaults['address_standardization_url'] = $this->_config->address_standardization_url;
|
||||
|
||||
$this->addressSequence = isset($newSequence) ? $newSequence : "";
|
||||
|
||||
$defaults['address_format'] = $this->_config->address_format;
|
||||
$defaults['mailing_format'] = $this->_config->mailing_format;
|
||||
$defaults['hideCountryMailingLabels'] = $this->_config->hideCountryMailingLabels;
|
||||
|
||||
parent::cbsDefaultValues($defaults);
|
||||
|
||||
return $defaults;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the form object.
|
||||
*/
|
||||
public function buildQuickForm() {
|
||||
$this->applyFilter('__ALL__', 'trim');
|
||||
|
||||
$this->addFormRule(array('CRM_Admin_Form_Preferences_Address', 'formRule'));
|
||||
|
||||
//get the tokens for Mailing Label field
|
||||
$tokens = CRM_Core_SelectValues::contactTokens();
|
||||
$this->assign('tokens', CRM_Utils_Token::formatTokensForDisplay($tokens));
|
||||
|
||||
parent::buildQuickForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $fields
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function formRule($fields) {
|
||||
$p = $fields['address_standardization_provider'];
|
||||
$u = $fields['address_standardization_userid'];
|
||||
$w = $fields['address_standardization_url'];
|
||||
|
||||
// make sure that there is a value for all of them
|
||||
// if any of them are set
|
||||
if ($p || $u || $w) {
|
||||
if (!CRM_Utils_System::checkPHPVersion(5, FALSE)) {
|
||||
$errors['_qf_default'] = ts('Address Standardization features require PHP version 5 or greater.');
|
||||
return $errors;
|
||||
}
|
||||
|
||||
if (!($p && $u && $w)) {
|
||||
$errors['_qf_default'] = ts('You must provide values for all three Address Standarization fields.');
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the form submission.
|
||||
*/
|
||||
public function postProcess() {
|
||||
if ($this->_action == CRM_Core_Action::VIEW) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->_params = $this->controller->exportValues($this->_name);
|
||||
|
||||
// check if county option has been set
|
||||
$options = CRM_Core_OptionGroup::values('address_options', FALSE, FALSE, TRUE);
|
||||
foreach ($options as $key => $title) {
|
||||
if ($title == ts('County')) {
|
||||
// check if the $key is present in $this->_params
|
||||
if (isset($this->_params['address_options']) &&
|
||||
!empty($this->_params['address_options'][$key])
|
||||
) {
|
||||
// print a status message to the user if county table seems small
|
||||
$countyCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_county");
|
||||
if ($countyCount < 10) {
|
||||
CRM_Core_Session::setStatus(ts('You have enabled the County option. Please ensure you populate the county table in your CiviCRM Database. You can find extensions to populate counties in the <a %1>CiviCRM Extensions Directory</a>.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/extensions', array('reset' => 1), TRUE, 'extensions-addnew') . '"')),
|
||||
ts('Populate counties'),
|
||||
"info"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->postProcessCommon();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
* $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for the display preferences
|
||||
*
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Campaign extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
CRM_Utils_System::setTitle(ts('CiviCampaign Component Settings'));
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME => array(
|
||||
'tag_unconfirmed' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Tag for Unconfirmed Petition Signers'),
|
||||
'weight' => 1,
|
||||
'description' => ts('If set, new contacts that are created when signing a petition are assigned a tag of this name.'),
|
||||
),
|
||||
'petition_contacts' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Petition Signers Group'),
|
||||
'weight' => 2,
|
||||
'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).'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,233 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for the display preferences.
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences {
|
||||
protected $_settings = array(
|
||||
'cvv_backoffice_required' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'update_contribution_on_membership_type_change' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'acl_financial_type' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'always_post_to_accounts_receivable' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'deferred_revenue_enabled' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'default_invoice_page' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
'invoicing' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
);
|
||||
|
||||
/**
|
||||
* Process the form submission.
|
||||
*/
|
||||
public function preProcess() {
|
||||
$config = CRM_Core_Config::singleton();
|
||||
CRM_Utils_System::setTitle(ts('CiviContribute Component Settings'));
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME => array(
|
||||
'invoice_prefix' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Invoice Prefix'),
|
||||
'weight' => 1,
|
||||
'description' => ts('Enter prefix to be display on PDF for invoice'),
|
||||
),
|
||||
'credit_notes_prefix' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Credit Notes Prefix'),
|
||||
'weight' => 2,
|
||||
'description' => ts('Enter prefix to be display on PDF for credit notes.'),
|
||||
),
|
||||
'due_date' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Due Date'),
|
||||
'weight' => 3,
|
||||
),
|
||||
'due_date_period' => array(
|
||||
'html_type' => 'select',
|
||||
'title' => ts('For transmission'),
|
||||
'weight' => 4,
|
||||
'description' => ts('Select the interval for due date.'),
|
||||
'option_values' => array(
|
||||
'select' => ts('- select -'),
|
||||
'days' => ts('Days'),
|
||||
'months' => ts('Months'),
|
||||
'years' => ts('Years'),
|
||||
),
|
||||
),
|
||||
'notes' => array(
|
||||
'html_type' => 'wysiwyg',
|
||||
'title' => ts('Notes or Standard Terms'),
|
||||
'weight' => 5,
|
||||
'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '),
|
||||
'attributes' => array('rows' => 2, 'cols' => 40),
|
||||
),
|
||||
'is_email_pdf' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Automatically email invoice when user purchases online'),
|
||||
'weight' => 6,
|
||||
),
|
||||
'tax_term' => array(
|
||||
'html_type' => 'text',
|
||||
'title' => ts('Tax Term'),
|
||||
'weight' => 7,
|
||||
),
|
||||
'tax_display_settings' => array(
|
||||
'html_type' => 'select',
|
||||
'title' => ts('Tax Display Settings'),
|
||||
'weight' => 8,
|
||||
'option_values' => array(
|
||||
'Do_not_show' => ts('Do not show breakdown, only show total -i.e ' .
|
||||
$config->defaultCurrencySymbol . '120.00'),
|
||||
'Inclusive' => ts('Show [tax term] inclusive price - i.e. ' .
|
||||
$config->defaultCurrencySymbol .
|
||||
'120.00 (includes [tax term] of ' .
|
||||
$config->defaultCurrencySymbol . '20.00)'),
|
||||
'Exclusive' => ts('Show [tax term] exclusive price - i.e. ' .
|
||||
$config->defaultCurrencySymbol . '100.00 + ' .
|
||||
$config->defaultCurrencySymbol . '20.00 [tax term]'),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the form object.
|
||||
*/
|
||||
public function buildQuickForm() {
|
||||
$htmlFields = array();
|
||||
foreach ($this->_settings as $setting => $group) {
|
||||
$settingMetaData = civicrm_api3('setting', 'getfields', array('name' => $setting));
|
||||
$props = $settingMetaData['values'][$setting];
|
||||
if (isset($props['quick_form_type'])) {
|
||||
$add = 'add' . $props['quick_form_type'];
|
||||
if ($add == 'addElement') {
|
||||
if (in_array($props['html_type'], array('checkbox', 'textarea'))) {
|
||||
$this->add($props['html_type'],
|
||||
$setting,
|
||||
$props['title']
|
||||
);
|
||||
}
|
||||
else {
|
||||
if ($props['html_type'] == 'select') {
|
||||
$functionName = CRM_Utils_Array::value('name', CRM_Utils_Array::value('pseudoconstant', $props));
|
||||
if ($functionName) {
|
||||
$props['option_values'] = array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::$functionName();
|
||||
}
|
||||
}
|
||||
$this->$add(
|
||||
$props['html_type'],
|
||||
$setting,
|
||||
ts($props['title']),
|
||||
CRM_Utils_Array::value($props['html_type'] == 'select' ? 'option_values' : 'html_attributes', $props, array()),
|
||||
$props['html_type'] == 'select' ? CRM_Utils_Array::value('html_attributes', $props) : NULL
|
||||
);
|
||||
}
|
||||
}
|
||||
elseif ($add == 'addMonthDay') {
|
||||
$this->add('date', $setting, ts($props['title']), CRM_Core_SelectValues::date(NULL, 'M d'));
|
||||
}
|
||||
elseif ($add == 'addDate') {
|
||||
$this->addDate($setting, ts($props['title']), FALSE, array('formatType' => $props['type']));
|
||||
}
|
||||
else {
|
||||
$this->$add($setting, ts($props['title']));
|
||||
}
|
||||
}
|
||||
$htmlFields[$setting] = ts($props['description']);
|
||||
}
|
||||
$this->assign('htmlFields', $htmlFields);
|
||||
parent::buildQuickForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default values for the form.
|
||||
*
|
||||
* default values are retrieved from the database
|
||||
*/
|
||||
public function setDefaultValues() {
|
||||
$defaults = Civi::settings()->get('contribution_invoice_settings');
|
||||
//CRM-16691: Changes made related to settings of 'CVV'.
|
||||
foreach (array('cvv_backoffice_required') as $setting) {
|
||||
$defaults[$setting] = civicrm_api3('setting', 'getvalue',
|
||||
array(
|
||||
'name' => $setting,
|
||||
'group' => CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,
|
||||
)
|
||||
);
|
||||
}
|
||||
return $defaults;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the form after the input has been submitted and validated.
|
||||
*/
|
||||
public function postProcess() {
|
||||
// store the submitted values in an array
|
||||
$params = $this->controller->exportValues($this->_name);
|
||||
unset($params['qfKey']);
|
||||
unset($params['entryURL']);
|
||||
Civi::settings()->set('contribution_invoice_settings', $params);
|
||||
Civi::settings()->set('update_contribution_on_membership_type_change',
|
||||
CRM_Utils_Array::value('update_contribution_on_membership_type_change', $params)
|
||||
);
|
||||
|
||||
// to set default value for 'Invoices / Credit Notes' checkbox on display preferences
|
||||
$values = CRM_Core_BAO_Setting::getItem("CiviCRM Preferences");
|
||||
$optionValues = CRM_Core_OptionGroup::values('user_dashboard_options', FALSE, FALSE, FALSE, NULL, 'name');
|
||||
$setKey = array_search('Invoices / Credit Notes', $optionValues);
|
||||
|
||||
if (isset($params['invoicing'])) {
|
||||
$value = array($setKey => $optionValues[$setKey]);
|
||||
$setInvoice = CRM_Core_DAO::VALUE_SEPARATOR .
|
||||
implode(CRM_Core_DAO::VALUE_SEPARATOR, array_keys($value)) .
|
||||
CRM_Core_DAO::VALUE_SEPARATOR;
|
||||
Civi::settings()->set('user_dashboard_options', $values['user_dashboard_options'] . $setInvoice);
|
||||
}
|
||||
else {
|
||||
$setting = explode(CRM_Core_DAO::VALUE_SEPARATOR, substr($values['user_dashboard_options'], 1, -1));
|
||||
$invoiceKey = array_search($setKey, $setting);
|
||||
if ($invoiceKey !== FALSE) {
|
||||
unset($setting[$invoiceKey]);
|
||||
}
|
||||
$settingName = CRM_Core_DAO::VALUE_SEPARATOR .
|
||||
implode(CRM_Core_DAO::VALUE_SEPARATOR, array_values($setting)) .
|
||||
CRM_Core_DAO::VALUE_SEPARATOR;
|
||||
Civi::settings()->set('user_dashboard_options', $settingName);
|
||||
}
|
||||
//CRM-16691: Changes made related to settings of 'CVV'.
|
||||
$settings = array_intersect_key($params, array('cvv_backoffice_required' => 1));
|
||||
$result = civicrm_api3('setting', 'create', $settings);
|
||||
CRM_Core_Session::setStatus(ts('Your changes have been saved.'), ts('Changes Saved'), "success");
|
||||
}
|
||||
|
||||
}
|
197
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Display.php
Normal file
197
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Display.php
Normal file
|
@ -0,0 +1,197 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for the display preferences.
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
CRM_Utils_System::setTitle(ts('Settings - Display Preferences'));
|
||||
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array(
|
||||
'contact_view_options' => array(
|
||||
'html_type' => 'checkboxes',
|
||||
'title' => ts('Viewing Contacts'),
|
||||
'weight' => 1,
|
||||
),
|
||||
'contact_smart_group_display' => array(
|
||||
'html_type' => 'radio',
|
||||
'title' => ts('Viewing Smart Groups'),
|
||||
'weight' => 2,
|
||||
),
|
||||
'contact_edit_options' => array(
|
||||
'html_type' => 'checkboxes',
|
||||
'title' => ts('Editing Contacts'),
|
||||
'weight' => 3,
|
||||
),
|
||||
'advanced_search_options' => array(
|
||||
'html_type' => 'checkboxes',
|
||||
'title' => ts('Contact Search'),
|
||||
'weight' => 4,
|
||||
),
|
||||
'activity_assignee_notification' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Notify Activity Assignees'),
|
||||
'weight' => 5,
|
||||
),
|
||||
'activity_assignee_notification_ics' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Include ICal Invite to Activity Assignees'),
|
||||
'weight' => 6,
|
||||
),
|
||||
'preserve_activity_tab_filter' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Preserve activity filters as a user preference'),
|
||||
'weight' => 7,
|
||||
),
|
||||
'contact_ajax_check_similar' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Check for Similar Contacts'),
|
||||
'weight' => 8,
|
||||
),
|
||||
'user_dashboard_options' => array(
|
||||
'html_type' => 'checkboxes',
|
||||
'title' => ts('Contact Dashboard'),
|
||||
'weight' => 9,
|
||||
),
|
||||
'display_name_format' => array(
|
||||
'html_type' => 'textarea',
|
||||
'title' => ts('Individual Display Name Format'),
|
||||
'weight' => 10,
|
||||
),
|
||||
'sort_name_format' => array(
|
||||
'html_type' => 'textarea',
|
||||
'title' => ts('Individual Sort Name Format'),
|
||||
'weight' => 11,
|
||||
),
|
||||
'editor_id' => array(
|
||||
'html_type' => NULL,
|
||||
'weight' => 12,
|
||||
),
|
||||
'ajaxPopupsEnabled' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable Popup Forms'),
|
||||
'weight' => 13,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function setDefaultValues() {
|
||||
$defaults = parent::setDefaultValues();
|
||||
parent::cbsDefaultValues($defaults);
|
||||
|
||||
if ($this->_config->display_name_format) {
|
||||
$defaults['display_name_format'] = $this->_config->display_name_format;
|
||||
}
|
||||
if ($this->_config->sort_name_format) {
|
||||
$defaults['sort_name_format'] = $this->_config->sort_name_format;
|
||||
}
|
||||
|
||||
return $defaults;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the form object.
|
||||
*/
|
||||
public function buildQuickForm() {
|
||||
$wysiwyg_options = CRM_Core_OptionGroup::values('wysiwyg_editor', FALSE, FALSE, FALSE, NULL, 'label', TRUE, FALSE, 'name');
|
||||
|
||||
//changes for freezing the invoices/credit notes checkbox if invoicing is uncheck
|
||||
$invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
|
||||
$invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
|
||||
$this->assign('invoicing', $invoicing);
|
||||
$extra = array();
|
||||
|
||||
$this->addElement('select', 'editor_id', ts('WYSIWYG Editor'), $wysiwyg_options, $extra);
|
||||
$this->addElement('submit', 'ckeditor_config', ts('Configure CKEditor'));
|
||||
|
||||
$editOptions = CRM_Core_OptionGroup::values('contact_edit_options', FALSE, FALSE, FALSE, 'AND v.filter = 0');
|
||||
$this->assign('editOptions', $editOptions);
|
||||
|
||||
$contactBlocks = CRM_Core_OptionGroup::values('contact_edit_options', FALSE, FALSE, FALSE, 'AND v.filter = 1');
|
||||
$this->assign('contactBlocks', $contactBlocks);
|
||||
|
||||
$nameFields = CRM_Core_OptionGroup::values('contact_edit_options', FALSE, FALSE, FALSE, 'AND v.filter = 2');
|
||||
$this->assign('nameFields', $nameFields);
|
||||
|
||||
$this->addElement('hidden', 'contact_edit_preferences', NULL, array('id' => 'contact_edit_preferences'));
|
||||
|
||||
$optionValues = CRM_Core_OptionGroup::values('user_dashboard_options', FALSE, FALSE, FALSE, NULL, 'name');
|
||||
$invoicesKey = array_search('Invoices / Credit Notes', $optionValues);
|
||||
$this->assign('invoicesKey', $invoicesKey);
|
||||
parent::buildQuickForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the form submission.
|
||||
*/
|
||||
public function postProcess() {
|
||||
if ($this->_action == CRM_Core_Action::VIEW) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->_params = $this->controller->exportValues($this->_name);
|
||||
|
||||
if (!empty($this->_params['contact_edit_preferences'])) {
|
||||
$preferenceWeights = explode(',', $this->_params['contact_edit_preferences']);
|
||||
foreach ($preferenceWeights as $key => $val) {
|
||||
if (!$val) {
|
||||
unset($preferenceWeights[$key]);
|
||||
}
|
||||
}
|
||||
$opGroupId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', 'contact_edit_options', 'id', 'name');
|
||||
CRM_Core_BAO_OptionValue::updateOptionWeights($opGroupId, array_flip($preferenceWeights));
|
||||
}
|
||||
|
||||
$this->_config->editor_id = $this->_params['editor_id'];
|
||||
|
||||
$this->postProcessCommon();
|
||||
|
||||
// If "Configure CKEditor" button was clicked
|
||||
if (!empty($this->_params['ckeditor_config'])) {
|
||||
// Suppress the "Saved" status message and redirect to the CKEditor Config page
|
||||
$session = CRM_Core_Session::singleton();
|
||||
$session->getStatus(TRUE);
|
||||
$url = CRM_Utils_System::url('civicrm/admin/ckeditor', 'reset=1');
|
||||
$session->pushUserContext($url);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
* $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for the display preferences
|
||||
*
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Event extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
CRM_Utils_System::setTitle(ts('CiviEvent Component Settings'));
|
||||
// pass "wiki" as 6th param to docURL2 if you are linking to a page in wiki.civicrm.org
|
||||
$docLink = CRM_Utils_System::docURL2("CiviEvent Cart Checkout", NULL, NULL, NULL, NULL, "wiki");
|
||||
// build an array containing all selectable option values for show_events
|
||||
$optionValues = array();
|
||||
for ($i = 10; $i <= 100; $i += 10) {
|
||||
$optionValues[$i] = $i;
|
||||
}
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME => array(
|
||||
'enable_cart' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Use Shopping Cart Style Event Registration'),
|
||||
'weight' => 1,
|
||||
'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. %1',
|
||||
array(1 => $docLink)),
|
||||
),
|
||||
'show_events' => array(
|
||||
'html_type' => 'select',
|
||||
'title' => ts('Dashboard entries'),
|
||||
'weight' => 2,
|
||||
'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
|
||||
'option_values' => array('' => ts('- select -')) + $optionValues + array(-1 => ts('show all')),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
}
|
139
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Mailing.php
Normal file
139
sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Mailing.php
Normal file
|
@ -0,0 +1,139 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
* $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for the component preferences
|
||||
*
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Mailing extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
CRM_Utils_System::setTitle(ts('CiviMail Component Settings'));
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME => array(
|
||||
'profile_double_optin' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable Double Opt-in for Profile Group(s) field'),
|
||||
'weight' => 1,
|
||||
'description' => ts('When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.'),
|
||||
),
|
||||
'profile_add_to_group_double_optin' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'),
|
||||
'weight' => 2,
|
||||
'description' => ts('When CiviMail is enabled and a profile uses the "Add to Group" setting, users who complete the profile form will receive a confirmation email. They must respond (opt-in) before they are added to the group.'),
|
||||
),
|
||||
'track_civimail_replies' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Track replies using VERP in Reply-To header'),
|
||||
'weight' => 3,
|
||||
'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To.'),
|
||||
),
|
||||
'civimail_workflow' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable workflow support for CiviMail'),
|
||||
'weight' => 4,
|
||||
'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).'),
|
||||
),
|
||||
'civimail_multiple_bulk_emails' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable multiple bulk email address for a contact.'),
|
||||
'weight' => 5,
|
||||
'description' => ts('CiviMail will deliver a copy of the email to each bulk email listed for the contact.'),
|
||||
),
|
||||
'civimail_server_wide_lock' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable global server wide lock for CiviMail'),
|
||||
'weight' => 6,
|
||||
'description' => NULL,
|
||||
),
|
||||
'include_message_id' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable CiviMail to generate Message-ID header'),
|
||||
'weight' => 7,
|
||||
'description' => NULL,
|
||||
),
|
||||
'write_activity_record' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable CiviMail to create activities on delivery'),
|
||||
'weight' => 8,
|
||||
'description' => NULL,
|
||||
),
|
||||
'disable_mandatory_tokens_check' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Disable check for mandatory tokens'),
|
||||
'weight' => 9,
|
||||
'description' => ts('Don\'t check for presence of mandatory tokens (domain address; unsubscribe/opt-out) before sending mailings. WARNING: Mandatory tokens are a safe-guard which facilitate compliance with the US CAN-SPAM Act. They should only be disabled if your organization adopts other mechanisms for compliance or if your organization is not subject to CAN-SPAM.'),
|
||||
),
|
||||
'dedupe_email_default' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('CiviMail dedupes e-mail addresses by default'),
|
||||
'weight' => 10,
|
||||
'description' => NULL,
|
||||
),
|
||||
'hash_mailing_url' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Hashed Mailing URL\'s'),
|
||||
'weight' => 11,
|
||||
'description' => 'If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
public function postProcess() {
|
||||
// check if mailing tab is enabled, if not prompt user to enable the tab if "write_activity_record" is disabled
|
||||
$params = $this->controller->exportValues($this->_name);
|
||||
|
||||
if (empty($params['write_activity_record'])) {
|
||||
$existingViewOptions = Civi::settings()->get('contact_view_options');
|
||||
|
||||
$displayValue = CRM_Core_OptionGroup::getValue('contact_view_options', 'CiviMail', 'name');
|
||||
$viewOptions = explode(CRM_Core_DAO::VALUE_SEPARATOR, $existingViewOptions);
|
||||
|
||||
if (!in_array($displayValue, $viewOptions)) {
|
||||
$existingViewOptions .= $displayValue . CRM_Core_DAO::VALUE_SEPARATOR;
|
||||
|
||||
Civi::settings()->set('contact_view_options', $existingViewOptions);
|
||||
CRM_Core_Session::setStatus(ts('We have automatically enabled the Mailings tab for the Contact Summary screens
|
||||
so that you can view mailings sent to each contact.'), ts('Saved'), 'success');
|
||||
}
|
||||
}
|
||||
|
||||
parent::postProcess();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for component preferences.
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Member extends CRM_Admin_Form_Preferences {
|
||||
public function preProcess() {
|
||||
CRM_Utils_System::setTitle(ts('CiviMember Component Settings'));
|
||||
$this->_varNames = array(
|
||||
CRM_Core_BAO_Setting::MEMBER_PREFERENCES_NAME => array(
|
||||
'default_renewal_contribution_page' => array(
|
||||
'html_type' => 'select',
|
||||
'title' => ts('Default online membership renewal page'),
|
||||
'option_values' => array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::contributionPage(),
|
||||
'weight' => 1,
|
||||
'description' => ts('If you select a default online contribution page for self-service membership renewals, a "renew" link pointing to that page will be displayed on the Contact Dashboard for memberships which were entered offline. You will need to ensure that the membership block for the selected online contribution page includes any currently available memberships.'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
parent::preProcess();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the form object.
|
||||
*/
|
||||
public function buildQuickForm() {
|
||||
parent::buildQuickForm();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-2017
|
||||
* $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class generates form components for multi site preferences
|
||||
*
|
||||
*/
|
||||
class CRM_Admin_Form_Preferences_Multisite extends CRM_Admin_Form_Preferences {
|
||||
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(
|
||||
'is_enabled' => array(
|
||||
'html_type' => 'checkbox',
|
||||
'title' => ts('Enable Multi Site Configuration'),
|
||||
'weight' => 1,
|
||||
'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled') . ' ' . $msDoc,
|
||||
),
|
||||
/** 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' => 'entity_reference',
|
||||
'title' => ts('Domain Group'),
|
||||
'weight' => 3,
|
||||
'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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue