X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=settings%2FLocalization.setting.php;h=ec1be4f3bbfca877a7965c7094b1307b3a16cce8;hb=96130b55887a9a440debb9096d4566d223d499db;hp=dbfbaa38a03aa64553cf999676461b27d637ed79;hpb=e08c179450090afdc3526734b74d540d965b25bd;p=civicrm-core.git diff --git a/settings/Localization.setting.php b/settings/Localization.setting.php index dbfbaa38a0..ec1be4f3bb 100644 --- a/settings/Localization.setting.php +++ b/settings/Localization.setting.php @@ -155,6 +155,9 @@ return [ 'type' => 'Integer', 'quick_form_type' => 'ChainSelect', 'html_type' => 'ChainSelect', + 'chain_select_settings' => [ + 'control_field' => 'defaultContactCountry', + ], //'pseudoconstant' => array( // 'callback' => 'CRM_Core_PseudoConstant::stateProvince', //), @@ -528,4 +531,27 @@ return [ 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.' . 'You may or may not wish to make an assumption here about whether it matches the site language', ], + 'pinnedContactCountries' => [ + 'group_name' => 'Localization Preferences', + 'group' => 'localization', + 'name' => 'pinnedContactCountries', + 'type' => 'Array', + 'quick_form_type' => 'Element', + 'html_type' => 'advmultiselect', + 'html_attributes' => [ + 'size' => 5, + 'style' => 'width:150px', + 'class' => 'advmultiselect', + ], + 'default' => [], + 'add' => '5.33', + 'title' => ts('Pinned Countries'), + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => ts('Appear in Top section of select list'), + 'help_text' => ts('Selected countries will appear in top section of country list'), + 'pseudoconstant' => [ + 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries', + ], + ], ];