Short array syntax - auto convert settings dir
authorColeman Watts <coleman@civicrm.org>
Tue, 9 Apr 2019 00:29:07 +0000 (20:29 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 9 Apr 2019 01:22:58 +0000 (21:22 -0400)
16 files changed:
settings/Address.setting.php
settings/Campaign.setting.php
settings/Case.setting.php
settings/Contribute.setting.php
settings/Core.setting.php
settings/Developer.setting.php
settings/Directory.setting.php
settings/Event.setting.php
settings/Extension.setting.php
settings/Localization.setting.php
settings/Mailing.setting.php
settings/Map.setting.php
settings/Member.setting.php
settings/Multisite.setting.php
settings/Search.setting.php
settings/Url.setting.php

index ab578db90898f8bb4e6ffdd93a8c23b2761be7b0..86766815efffff78579b9d96c72ef6156b760675 100644 (file)
@@ -34,8 +34,8 @@
 /**
  * Settings metadata file
  */
-return array(
-  'address_standardization_provider' => array(
+return [
+  'address_standardization_provider' => [
     'group_name' => 'Address Preferences',
     'group' => 'address',
     'name' => 'address_standardization_provider',
@@ -49,8 +49,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => 'CiviCRM includes an optional plugin for interfacing with the United States Postal Services (USPS) Address Standardization web service. You must register to use the USPS service at https://www.usps.com/business/web-tools-apis/address-information.htm. If you are approved, they will provide you with a User ID and the URL for the service. Plugins for other address standardization services may be available from 3rd party developers. If installed, they will be included in the drop-down below. ',
-  ),
-  'address_standardization_userid' => array(
+  ],
+  'address_standardization_userid' => [
     'group_name' => 'Address Preferences',
     'group' => 'address',
     'name' => 'address_standardization_userid',
@@ -63,8 +63,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'address_standardization_url' => array(
+  ],
+  'address_standardization_url' => [
     'group_name' => 'Address Preferences',
     'group' => 'address',
     'name' => 'address_standardization_url',
@@ -78,8 +78,8 @@ return array(
     'description' => NULL,
     'help_text' => 'Web Service URL',
     'validate_callback' => 'CRM_Utils_Rule::url',
-  ),
-  'hideCountryMailingLabels' => array(
+  ],
+  'hideCountryMailingLabels' => [
     'group_name' => 'Address Preferences',
     'group' => 'address',
     'name'  => 'hideCountryMailingLabels',
@@ -92,5 +92,5 @@ return array(
     'is_contact' => 0,
     'description' => 'Do not display the country field in mailing labels when the country is the same as that of the domain',
     'help_text' => NULL,
-  ),
-);
+  ],
+];
index ef9673b7913baf601e243260c24110aa2d6f613b..a17b25007c25a38420e312e87df643cd7e3f2b58 100644 (file)
@@ -35,8 +35,8 @@
  * Settings metadata file
  */
 
-return array(
-  'tag_unconfirmed' => array(
+return [
+  'tag_unconfirmed' => [
     'group_name' => 'Campaign Preferences',
     'group' => 'campaign',
     'name' => 'tag_unconfirmed',
@@ -49,8 +49,8 @@ return array(
     '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' => '',
-  ),
-  'petition_contacts' => array(
+  ],
+  'petition_contacts' => [
     'group_name' => 'Campaign Preferences',
     'group' => 'campaign',
     'name' => 'petition_contacts',
@@ -63,6 +63,6 @@ return array(
     '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' => '',
-  ),
+  ],
 
-);
+];
index 7702a7947d75ae3d55ed1bd60b043fce30798a6b..f85cd0af3b6f64ea5253426a0fbc70162a4bdaae 100644 (file)
 /**
  * Settings metadata file
  */
-return array(
-  'civicaseRedactActivityEmail' => array(
+return [
+  'civicaseRedactActivityEmail' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'civicaseRedactActivityEmail',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'default',
     'add' => '4.7',
     'title' => 'Redact Activity Email',
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Case_Info::getRedactOptions',
-    ),
+    ],
     'description' => 'Should activity emails be redacted? (Set "Default" to load setting from the legacy "Settings.xml" file.)',
     'help_text' => '',
-  ),
-  'civicaseAllowMultipleClients' => array(
+  ],
+  'civicaseAllowMultipleClients' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'civicaseAllowMultipleClients',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'default',
     'add' => '4.7',
     'title' => 'Allow Multiple Case Clients',
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Case_Info::getMultiClientOptions',
-    ),
+    ],
     'description' => 'How many clients may be associated with a given case? (Set "Default" to load setting from the legacy "Settings.xml" file.)',
     'help_text' => '',
-  ),
-  'civicaseNaturalActivityTypeSort' => array(
+  ],
+  'civicaseNaturalActivityTypeSort' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'civicaseNaturalActivityTypeSort',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'default',
     'add' => '4.7',
     'title' => 'Activity Type Sorting',
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Case_Info::getSortOptions',
-    ),
+    ],
     'description' => 'How to sort activity-types on the "Manage Case" screen? (Set "Default" to load setting from the legacy "Settings.xml" file.)',
     'help_text' => '',
-  ),
-  'civicaseActivityRevisions' => array(
+  ],
+  'civicaseActivityRevisions' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'civicaseActivityRevisions',
@@ -114,5 +114,5 @@ return array(
     'is_contact' => 0,
     'description' => 'Enable tracking of activity revisions embedded within the "civicrm_activity" table. Alternatively, see "Administer => System Settings => Misc => Logging".',
     'help_text' => '',
-  ),
-);
+  ],
+];
index 7b675e036ff65d0db55250b309c3d7417a336e8c..d40dd4d0c4168d5491ab2b7f00496152d8cd984b 100644 (file)
@@ -33,8 +33,8 @@
  * Settings metadata file
  */
 
-return array(
-  'cvv_backoffice_required' => array(
+return [
+  'cvv_backoffice_required' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'cvv_backoffice_required',
@@ -48,15 +48,15 @@ return array(
     'is_contact' => 0,
     'description' => 'Is the CVV code required for back office credit card transactions',
     'help_text' => 'If set it back-office credit card transactions will required a cvv code. Leave as required unless you have a very strong reason to change',
-  ),
-  'contribution_invoice_settings' => array(
+  ],
+  'contribution_invoice_settings' => [
     // @todo our standard is to have a setting per item not to hide settings in an array with
     // no useful metadata. Undo this setting.
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'contribution_invoice_settings',
     'type' => 'Array',
-    'default' => array(
+    'default' => [
       'invoice_prefix' => 'INV_',
       'credit_notes_prefix' => 'CN_',
       'due_date' => '10',
@@ -64,15 +64,15 @@ return array(
       'notes' => '',
       'tax_term' => 'Sales Tax',
       'tax_display_settings' => 'Inclusive',
-    ),
+    ],
     'add' => '4.7',
     'title' => 'Contribution Invoice Settings',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'invoicing' => array(
+  ],
+  'invoicing' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'invoicing',
@@ -84,11 +84,11 @@ return array(
     'title' => 'Enable Tax and Invoicing',
     'is_domain' => 1,
     'is_contact' => 0,
-    'on_change' => array(
+    'on_change' => [
       'CRM_Invoicing_Utils::onToggle',
-    ),
-  ),
-  'acl_financial_type' => array(
+    ],
+  ],
+  'acl_financial_type' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'acl_financial_type',
@@ -103,8 +103,8 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
     'help' => ['id' => 'acl_financial_type'],
-  ),
-  'deferred_revenue_enabled' => array(
+  ],
+  'deferred_revenue_enabled' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'deferred_revenue_enabled',
@@ -118,18 +118,18 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'default_invoice_page' => array(
+  ],
+  'default_invoice_page' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'default_invoice_page',
     'type' => 'Integer',
     'quick_form_type' => 'Select',
     'default' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
       'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
-    ),
+    ],
     'html_type' => 'select',
     'add' => '4.7',
     'title' => 'Default invoice payment page',
@@ -137,8 +137,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'always_post_to_accounts_receivable' => array(
+  ],
+  'always_post_to_accounts_receivable' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'always_post_to_accounts_receivable',
@@ -152,8 +152,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'update_contribution_on_membership_type_change' => array(
+  ],
+  'update_contribution_on_membership_type_change' => [
     'group_name' => 'Contribute Preferences',
     'group' => 'contribute',
     'name' => 'update_contribution_on_membership_type_change',
@@ -167,5 +167,5 @@ return array(
     'is_contact' => 0,
     'description' => 'Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.',
     'help_text' => NULL,
-  ),
-);
+  ],
+];
index e90952c6a20f1b86368df229d5f4423733db5265..27af8a8f5b4f1618f3c17f03248827ad6c64ecfa 100644 (file)
 /**
  * Settings metadata file
  */
-return array(
-  'contact_view_options' => array(
+return [
+  'contact_view_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_view_options',
     'type' => 'String',
     'quick_form_type' => 'CheckBoxes',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'contact_view_options',
-    ),
+    ],
     'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 113\ 1',
     'add' => '4.1',
     'title' => ts('Viewing Contacts'),
@@ -53,16 +53,16 @@ return array(
     'description' => ts("Select the tabs that should be displayed when viewing a contact record. EXAMPLE: If your organization does not keep track of 'Relationships', then un-check this option to simplify the screen display. Tabs for Contributions, Pledges, Memberships, Events, Grants and Cases are also hidden if the corresponding component is not enabled. Go to Administer > System Settings > Enable Components to modify the components which are available for your site."),
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'contact_edit_options' => array(
+  ],
+  'contact_edit_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_edit_options',
     'type' => 'String',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'contact_edit_options',
-    ),
+    ],
     'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 111\ 112\ 114\ 115\ 116\ 117\ 1',
     'add' => '4.1',
     'title' => ts('Editing Contacts'),
@@ -71,16 +71,16 @@ return array(
     'description' => ts('Select the sections that should be included when adding or editing a contact record. EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact add/edit screen.'),
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'advanced_search_options' => array(
+  ],
+  'advanced_search_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'advanced_search_options',
     'type' => 'String',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'advanced_search_options',
-    ),
+    ],
     'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
     'add' => '4.1',
     'title' => ts('Contact Search'),
@@ -88,16 +88,16 @@ return array(
     'is_contact' => 0,
     'description' => ts('Select the sections that should be included in the Basic and Advanced Search forms. EXAMPLE: If you don\'t track Relationships - then you do not need this section included in the advanced search form. Simplify the form by un-checking this option.'),
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'user_dashboard_options' => array(
+  ],
+  'user_dashboard_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'user_dashboard_options',
     'type' => 'String',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'user_dashboard_options',
-    ),
+    ],
     'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 1',
     'add' => '4.1',
     'title' => ts('Contact Dashboard'),
@@ -106,16 +106,16 @@ return array(
     'description' => ts('Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don\'t want constituents to view their own contribution history, un-check that option.'),
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'address_options' => array(
+  ],
+  'address_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'address_options',
     'type' => 'String',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'address_options',
-    ),
+    ],
     'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 18\ 19\ 110\ 111\ 1',
     'add' => '4.1',
     'title' => ts('Address Fields'),
@@ -124,8 +124,8 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'address_format' => array(
+  ],
+  'address_format' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'address_format',
@@ -138,8 +138,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'mailing_format' => array(
+  ],
+  'mailing_format' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'mailing_format',
@@ -152,8 +152,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'display_name_format' => array(
+  ],
+  'display_name_format' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'display_name_format',
@@ -165,8 +165,8 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => ts('Display name format for individual contact display names.'),
-  ),
-  'sort_name_format' => array(
+  ],
+  'sort_name_format' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'sort_name_format',
@@ -178,8 +178,8 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => ts('Sort name format for individual contact display names.'),
-  ),
-  'remote_profile_submissions' => array(
+  ],
+  'remote_profile_submissions' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'remote_profile_submissions',
@@ -193,8 +193,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If enabled, CiviCRM will permit submissions from external sites to profiles. This is disabled by default to limit abuse.'),
     'help_text' => NULL,
-  ),
-  'allow_alert_autodismissal' => array(
+  ],
+  'allow_alert_autodismissal' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'allow_alert_autodismissal',
@@ -208,8 +208,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If disabled, CiviCRM will not automatically dismiss any alerts after 10 seconds.'),
     'help_text' => NULL,
-  ),
-  'editor_id' => array(
+  ],
+  'editor_id' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'editor_id',
@@ -218,16 +218,16 @@ return array(
     'default' => 'CKEditor',
     'add' => '4.1',
     'title' => ts('Wysiwig Editor'),
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'wysiwyg_editor',
       'keyColumn' => 'name',
-    ),
+    ],
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'contact_ajax_check_similar' => array(
+  ],
+  'contact_ajax_check_similar' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_ajax_check_similar',
@@ -241,8 +241,8 @@ return array(
     'description' => NULL,
     'help_text' => NULL,
     'options' => ['1' => ts('While Typing'), '0' => ts('When Saving'), '2' => ts('Never')],
-  ),
-  'ajaxPopupsEnabled' => array(
+  ],
+  'ajaxPopupsEnabled' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'ajaxPopupsEnabled',
@@ -255,8 +255,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'activity_assignee_notification' => array(
+  ],
+  'activity_assignee_notification' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'activity_assignee_notification',
@@ -269,8 +269,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'activity_assignee_notification_ics' => array(
+  ],
+  'activity_assignee_notification_ics' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'activity_assignee_notification_ics',
@@ -283,17 +283,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'contact_autocomplete_options' => array(
+  ],
+  'contact_autocomplete_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_autocomplete_options',
     'type' => 'String',
     'quick_form_type' => 'CheckBoxes',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Search::getContactAutocompleteOptions',
-    ),
+    ],
     'default' => '\ 11\ 12\ 1',
     'add' => '4.1',
     'title' => ts('Autocomplete Contact Search'),
@@ -302,17 +302,17 @@ return array(
     'description' => ts("Selected fields will be displayed in back-office autocomplete dropdown search results (Quick Search, etc.). Contact Name is always included."),
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'contact_reference_options' => array(
+  ],
+  'contact_reference_options' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_reference_options',
     'type' => 'String',
     'quick_form_type' => 'CheckBoxes',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Search::getContactReferenceOptions',
-    ),
+    ],
     'default' => '\ 11\ 12\ 1',
     'add' => '4.1',
     'title' => ts('Contact Reference Options'),
@@ -321,8 +321,8 @@ return array(
     'description' => ts("Selected fields will be displayed in autocomplete dropdown search results for 'Contact Reference' custom fields. Contact Name is always included. NOTE: You must assign 'access contact reference fields' permission to the anonymous role if you want to use custom contact reference fields in profiles on public pages. For most situations, you should use the 'Limit List to Group' setting when configuring a contact reference field which will be used in public forms to prevent exposing your entire contact list."),
     'help_text' => NULL,
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
-  ),
-  'contact_smart_group_display' => array(
+  ],
+  'contact_smart_group_display' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_smart_group_display',
@@ -335,11 +335,11 @@ return array(
     'is_contact' => 0,
     'description' => ts('Controls display of the smart groups that a contact is part of in each contact\'s "Groups" tab. "Show on Demand" provides the best performance, and is recommended for most sites.'),
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'contact_smart_group_display',
-    ),
-  ),
-  'smart_group_cache_refresh_mode' => array(
+    ],
+  ],
+  'smart_group_cache_refresh_mode' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'smart_group_cache_refresh_mode',
@@ -350,13 +350,13 @@ return array(
     'title' => ts('Smart Group Refresh Mode'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Contact_BAO_GroupContactCache::getModes',
-    ),
+    ],
     'description' => ts('Should the smart groups be by cron jobs or user actions'),
     'help_text' => ts('In "Opportunistic Flush" mode, caches are flushed in response to user actions; this mode is broadly compatible but may add latency during form-submissions. In "Cron Flush" mode, you should schedule a cron job to flush caches; this can improve latency on form-submissions but requires more setup.'),
-  ),
-  'installed' => array(
+  ],
+  'installed' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -370,8 +370,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('A flag indicating whether this system has run a post-installation routine'),
     'help_text' => NULL,
-  ),
-  'max_attachments' => array(
+  ],
+  'max_attachments' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'max_attachments',
@@ -379,10 +379,10 @@ return array(
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 3,
     'add' => '4.3',
     'title' => ts('Maximum Attachments'),
@@ -390,18 +390,18 @@ return array(
     'is_contact' => 0,
     'description' => ts('Maximum number of files (documents, images, etc.) which can be attached to emails or activities.'),
     'help_text' => NULL,
-  ),
-  'maxFileSize' => array(
+  ],
+  'maxFileSize' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'maxFileSize',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 3,
     'add' => '4.3',
     'title' => ts('Maximum File Size (in MB)'),
@@ -409,8 +409,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Maximum Size of file (documents, images, etc.) which can be attached to emails or activities.<br />Note: php.ini should support this file size.'),
     'help_text' => NULL,
-  ),
-  'contact_undelete' => array(
+  ],
+  'contact_undelete' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'contact_undelete',
@@ -423,8 +423,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If enabled, deleted contacts will be moved to trash (instead of being destroyed). Users with the proper permission are able to search for the deleted contacts and restore them (or delete permanently).'),
     'help_text' => NULL,
-  ),
-  'allowPermDeleteFinancial' => array(
+  ],
+  'allowPermDeleteFinancial' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'allowPermDeleteFinancial',
@@ -437,8 +437,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Allow Permanent Delete for contacts who are linked to live financial transactions'),
     'help_text' => NULL,
-  ),
-  'securityAlert' => array(
+  ],
+  'securityAlert' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'securityAlert',
@@ -451,8 +451,8 @@ return array(
     'is_contact' => 0,
     'description' => ts("If enabled, CiviCRM will display pop-up notifications (no more than once per day) for security and misconfiguration issues identified in the system check."),
     'help_text' => NULL,
-  ),
-  'doNotAttachPDFReceipt' => array(
+  ],
+  'doNotAttachPDFReceipt' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'doNotAttachPDFReceipt',
@@ -465,17 +465,17 @@ return array(
     'is_contact' => 0,
     'description' => ts("If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution."),
     'help_text' => NULL,
-  ),
-  'recordGeneratedLetters' => array(
+  ],
+  'recordGeneratedLetters' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recordGeneratedLetters',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'multiple',
     'add' => '4.7',
     'title' => ts('Record generated letters'),
@@ -483,20 +483,20 @@ return array(
     'is_contact' => 0,
     'description' => ts('When generating a letter (PDF/Word) via mail-merge, how should the letter be recorded?'),
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Contact_Form_Task_PDFLetterCommon::getLoggingOptions',
-    ),
-  ),
-  'wkhtmltopdfPath' => array(
+    ],
+  ],
+  'wkhtmltopdfPath' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'wkhtmltopdfPath',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 256,
-    ),
+    ],
     'html_type' => 'text',
     'default' => NULL,
     'add' => '4.3',
@@ -505,17 +505,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'recaptchaOptions' => array(
+  ],
+  'recaptchaOptions' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recaptchaOptions',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 64,
-    ),
+    ],
     'html_type' => 'text',
     'default' => NULL,
     'add' => '4.3',
@@ -524,17 +524,17 @@ return array(
     'is_contact' => 0,
     'description' => ts('You can specify the reCAPTCHA theme options as comma separated data.(eg: theme:\'blackglass\', lang : \'fr\' ). Check the available options at <a href="https://developers.google.com/recaptcha/docs/display#config">Customizing the Look and Feel of reCAPTCHA</a>.'),
     'help_text' => NULL,
-  ),
-  'recaptchaPublicKey' => array(
+  ],
+  'recaptchaPublicKey' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recaptchaPublicKey',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 64,
-    ),
+    ],
     'html_type' => 'text',
     'default' => NULL,
     'add' => '4.3',
@@ -543,8 +543,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'forceRecaptcha' => array(
+  ],
+  'forceRecaptcha' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -558,17 +558,17 @@ return array(
     'default' => '0',
     'title' => ts('Force reCAPTCHA on Contribution pages'),
     'description' => ts('If enabled, reCAPTCHA will show on all contribution pages.'),
-  ),
-  'recaptchaPrivateKey' => array(
+  ],
+  'recaptchaPrivateKey' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recaptchaPrivateKey',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 64,
-    ),
+    ],
     'html_type' => 'text',
     'default' => NULL,
     'add' => '4.3',
@@ -577,17 +577,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'checksum_timeout' => array(
+  ],
+  'checksum_timeout' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'checksum_timeout',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 8,
-    ),
+    ],
     'html_type' => 'text',
     'default' => 7,
     'add' => '4.3',
@@ -596,17 +596,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'blogUrl' => array(
+  ],
+  'blogUrl' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'blogUrl',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 128,
-    ),
+    ],
     'html_type' => 'text',
     'default' => '*default*',
     'add' => '4.3',
@@ -615,17 +615,17 @@ return array(
     'is_contact' => 0,
     'description' => ts('Blog feed URL used by the blog dashlet'),
     'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
-  ),
-  'communityMessagesUrl' => array(
+  ],
+  'communityMessagesUrl' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'communityMessagesUrl',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 128,
-    ),
+    ],
     'html_type' => 'text',
     'default' => '*default*',
     'add' => '4.3',
@@ -634,17 +634,17 @@ return array(
     'is_contact' => 0,
     'description' => ts('Service providing CiviCRM community messages'),
     'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
-  ),
-  'gettingStartedUrl' => array(
+  ],
+  'gettingStartedUrl' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'gettingStartedUrl',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 128,
-    ),
+    ],
     'html_type' => 'text',
     'default' => '*default*',
     'add' => '4.3',
@@ -653,8 +653,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Service providing the Getting Started data'),
     'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
-  ),
-  'resCacheCode' => array(
+  ],
+  'resCacheCode' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'resCacheCode',
@@ -668,8 +668,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Code appended to resource URLs (JS/CSS) to coerce HTTP caching'),
     'help_text' => NULL,
-  ),
-  'verifySSL' => array(
+  ],
+  'verifySSL' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'verifySSL',
@@ -682,8 +682,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If disabled, outbound web-service requests will allow unverified, insecure HTTPS connections'),
     'help_text' => ts('Unless you are absolutely unable to configure your server to check the SSL certificate of the remote server you should leave this set to Yes'),
-  ),
-  'enableSSL' => array(
+  ],
+  'enableSSL' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'enableSSL',
@@ -696,8 +696,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
     'help_text' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
-  ),
-  'wpBasePage' => array(
+  ],
+  'wpBasePage' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'wpBasePage',
@@ -711,8 +711,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If set, CiviCRM will use this setting as the base url.'),
     'help_text' => ts('By default, CiviCRM will generate front-facing pages using the home page at http://wp/ as its base. If you want to use a different template for CiviCRM pages, set the path here.'),
-  ),
-  'secondDegRelPermissions' => array(
+  ],
+  'secondDegRelPermissions' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'secondDegRelPermissions',
@@ -725,8 +725,8 @@ return array(
     'is_contact' => 0,
     'description' => ts("If enabled, contacts with the permission to edit a related contact will inherit that contact's permission to edit other related contacts"),
     'help_text' => NULL,
-  ),
-  'enable_components' => array(
+  ],
+  'enable_components' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
@@ -734,11 +734,11 @@ return array(
     'type' => 'Array',
     'quick_form_type' => 'Element',
     'html_type' => 'advmultiselect',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 5,
       'style' => 'width:150px',
       'class' => 'advmultiselect',
-    ),
+    ],
     'default' => NULL,
     'add' => '4.4',
     'title' => ts('Enable Components'),
@@ -746,13 +746,13 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-    'on_change' => array(
+    'on_change' => [
       'CRM_Case_Info::onToggleComponents',
       'CRM_Core_Component::flushEnabledComponents',
       'call://resources/resetCacheCode',
-    ),
-  ),
-  'disable_core_css' => array(
+    ],
+  ],
+  'disable_core_css' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'disable_core_css',
@@ -765,8 +765,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Prevent the stylesheet "civicrm.css" from being loaded.'),
     'help_text' => NULL,
-  ),
-  'empoweredBy' => array(
+  ],
+  'empoweredBy' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'empoweredBy',
@@ -779,8 +779,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.'),
     'help_text' => NULL,
-  ),
-  'logging_no_trigger_permission' => array(
+  ],
+  'logging_no_trigger_permission' => [
     'add' => '4.7',
     'is_domain' => 1,
     'is_contact' => 0,
@@ -794,8 +794,8 @@ return array(
     'default' => 0,
     'title' => ts('(EXPERIMENTAL) MySQL user does not have trigger permissions'),
     'description' => ts('Set this when you intend to manage trigger creation outside of CiviCRM'),
-  ),
-  'logging' => array(
+  ],
+  'logging' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -810,11 +810,11 @@ return array(
     'title' => ts('Logging'),
     'description' => ts('If enabled, all actions will be logged with a complete record of changes.'),
     'validate_callback' => 'CRM_Logging_Schema::checkLoggingSupport',
-    'on_change' => array(
+    'on_change' => [
       'CRM_Logging_Schema::onToggle',
-    ),
-  ),
-  'logging_uniqueid_date' => array(
+    ],
+  ],
+  'logging_uniqueid_date' => [
     'add' => '4.7',
     'help_text' => ts('This is the date when CRM-18193 was implemented'),
     'is_domain' => 1,
@@ -828,8 +828,8 @@ return array(
     'default' => NULL,
     'title' => ts('Logging Unique ID not recorded before'),
     'description' => ts('This is the date when CRM-18193 was implemented'),
-  ),
-  'logging_all_tables_uniquid' => array(
+  ],
+  'logging_all_tables_uniquid' => [
     'add' => '4.7',
     'help_text' => ts('This indicates there are no tables holdng pre-uniqid log_conn_id values (CRM-18193)'),
     'is_domain' => 1,
@@ -843,8 +843,8 @@ return array(
     'default' => 0,
     'title' => ts('All tables use Unique Connection ID'),
     'description' => ts('Do some tables pre-date CRM-18193?'),
-  ),
-  'userFrameworkUsersTableName' => array(
+  ],
+  'userFrameworkUsersTableName' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -855,15 +855,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '32',
       'maxlength' => '64',
-    ),
+    ],
     'default' => 'users',
     'title' => ts('CMS Users Table Name'),
     'description' => '',
-  ),
-  'wpLoadPhp' => array(
+  ],
+  'wpLoadPhp' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'wpLoadPhp',
@@ -877,18 +877,18 @@ return array(
     'is_contact' => 0,
     'description' => ts('CiviCRM will use this setting as path to bootstrap WP.'),
     'help_text' => NULL,
-  ),
-  'secure_cache_timeout_minutes' => array(
+  ],
+  'secure_cache_timeout_minutes' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'secure_cache_timeout_minutes',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 20,
     'add' => '4.7',
     'title' => ts('Secure Cache Timeout'),
@@ -896,8 +896,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Maximum number of minutes that secure form data should linger'),
     'help_text' => NULL,
-  ),
-  'site_id' => array(
+  ],
+  'site_id' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'site_id',
@@ -911,18 +911,18 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'recentItemsMaxCount' => array(
+  ],
+  'recentItemsMaxCount' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recentItemsMaxCount',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 3,
-    ),
+    ],
     'default' => 20,
     'add' => '4.7',
     'title' => ts('Size of "Recent Items" stack'),
@@ -930,18 +930,18 @@ return array(
     'is_contact' => 0,
     'description' => ts('How many items should CiviCRM store in it\'s "Recently viewed" list.'),
     'help_text' => NULL,
-  ),
-  'recentItemsProviders' => array(
+  ],
+  'recentItemsProviders' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'recentItemsProviders',
     'type' => 'Array',
     'html_type' => 'Select',
     'quick_form_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'multiple' => 1,
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => '',
     'add' => '4.7',
     'title' => ts('Recent Items Providers'),
@@ -949,11 +949,11 @@ return array(
     'is_contact' => 0,
     'description' => ts('What providers may save views in CiviCRM\'s "Recently viewed" list. If empty, all are in.'),
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Utils_Recent::getProviders',
-    ),
-  ),
-  'dedupe_default_limit' => array(
+    ],
+  ],
+  'dedupe_default_limit' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'dedupe_default_limit',
@@ -967,8 +967,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Default to only loading matches against this number of contacts'),
     'help_text' => ts('Deduping larger databases can crash the server. By configuring a limit other than 0 here the dedupe query will only search for matches against a limited number of contacts.'),
-  ),
-  'syncCMSEmail' => array(
+  ],
+  'syncCMSEmail' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'syncCMSEmail',
@@ -982,8 +982,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If enabled, then CMS email id will be synchronised with CiviCRM contacts\'s primary email.'),
     'help_text' => NULL,
-  ),
-  'preserve_activity_tab_filter' => array(
+  ],
+  'preserve_activity_tab_filter' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'preserve_activity_tab_filter',
@@ -995,8 +995,8 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => ts('When enabled, any filter settings a user selects on the contact\'s Activity tab will be remembered as they visit other contacts.'),
-  ),
-  'do_not_notify_assignees_for' => array(
+  ],
+  'do_not_notify_assignees_for' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'do_not_notify_assignees_for',
@@ -1004,20 +1004,20 @@ return array(
     'add' => '4.7',
     'is_domain' => 1,
     'is_contact' => 0,
-    'default' => array(),
+    'default' => [],
     'title' => ts('Do not notify assignees for'),
     'description' => ts('These activity types will be excluded from automated email notifications to assignees.'),
     'html_type' => 'select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'multiple' => 1,
       'class' => 'huge crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'optionGroupName' => 'activity_type',
-    ),
+    ],
     'quick_form_type' => 'Select',
-  ),
-  'menubar_position' => array(
+  ],
+  'menubar_position' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'menubar_position',
@@ -1030,14 +1030,14 @@ return array(
     'is_contact' => 0,
     'description' => ts('Location of the CiviCRM main menu.'),
     'help_text' => NULL,
-    'options' => array(
+    'options' => [
       'over-cms-menu' => ts('Replace website menu'),
       'below-cms-menu' => ts('Below website menu'),
       'above-crm-container' => ts('Above content area'),
       'none' => ts('None - disable menu'),
-    ),
-  ),
-  'menubar_color' => array(
+    ],
+  ],
+  'menubar_color' => [
     'group_name' => 'CiviCRM Preferences',
     'group' => 'core',
     'name' => 'menubar_color',
@@ -1051,5 +1051,5 @@ return array(
     'description' => ts('Color of the CiviCRM main menu.'),
     'help_text' => NULL,
     'validate_callback' => 'CRM_Utils_Rule::color',
-  ),
-);
+  ],
+];
index 56f2bda18e99edf35557a805cc34302327438129..8f4f543eab5eb30f88cfe8bca95bfb328d4458ac 100644 (file)
  * Settings metadata file
  */
 
-return array(
-  'assetCache' => array(
+return [
+  'assetCache' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'assetCache',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'auto',
     'add' => '4.7',
     'title' => 'Asset Caching',
@@ -54,11 +54,11 @@ return array(
     'is_contact' => 0,
     'description' => 'Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
-    ),
-  ),
-  'userFrameworkLogging' => array(
+    ],
+  ],
+  'userFrameworkLogging' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'userFrameworkLogging',
@@ -71,8 +71,8 @@ return array(
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
     'help_text' => "Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)",
-  ),
-  'debug_enabled' => array(
+  ],
+  'debug_enabled' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'debug_enabled',
@@ -86,8 +86,8 @@ return array(
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want to use one of CiviCRM's debugging tools. This feature should NOT be enabled for production sites",
     'help_text' => 'Do not turn this on on production sites',
-  ),
-  'backtrace' => array(
+  ],
+  'backtrace' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'backtrace',
@@ -99,8 +99,8 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want to display a backtrace listing when a fatal error is encountered. This feature should NOT be enabled for production sites",
-  ),
-  'environment' => array(
+  ],
+  'environment' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'environment',
@@ -108,19 +108,19 @@ return array(
     'html_type' => 'Select',
     'quick_form_type' => 'Select',
     'default' => 'Production',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'environment',
-    ),
+    ],
     'add' => '4.7',
     'title' => 'Environment',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Setting to define the environment in which this CiviCRM instance is running.",
-    'on_change' => array(
+    'on_change' => [
       'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
-    ),
-  ),
-  'fatalErrorHandler' => array(
+    ],
+  ],
+  'fatalErrorHandler' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'fatalErrorHandler',
@@ -133,5 +133,5 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.",
-  ),
-);
+  ],
+];
index c80aadd5ac80545038d5c647d68b9e6428c86cc4..0396a11a9196ad510329d80df7c97cbe788a3b6d 100644 (file)
@@ -36,8 +36,8 @@
  * Settings metadata file
  */
 
-return array(
-  'uploadDir' => array(
+return [
+  'uploadDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -52,8 +52,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => 'File system path where temporary CiviCRM files - such as import data files - are uploaded.',
-  ),
-  'imageUploadDir' => array(
+  ],
+  'imageUploadDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -68,8 +68,8 @@ return array(
     'is_contact' => 0,
     'description' => 'File system path where image files are uploaded. Currently, this path is used for images associated with premiums (CiviContribute thank-you gifts).',
     'help_text' => NULL,
-  ),
-  'customFileUploadDir' => array(
+  ],
+  'customFileUploadDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -84,8 +84,8 @@ return array(
     'is_contact' => 0,
     'description' => 'Path where documents and images which are attachments to contact records are stored (e.g. contact photos, resumes, contracts, etc.). These attachments are defined using \'file\' type custom fields.',
     'help_text' => NULL,
-  ),
-  'customTemplateDir' => array(
+  ],
+  'customTemplateDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -100,8 +100,8 @@ return array(
     'is_contact' => 0,
     'description' => 'Path where site specific templates are stored if any. This directory is searched first if set. Custom JavaScript code can be added to templates by creating files named templateFile.extra.tpl. (learn more...)',
     'help_text' => NULL,
-  ),
-  'customPHPPathDir' => array(
+  ],
+  'customPHPPathDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -116,8 +116,8 @@ return array(
     'is_contact' => 0,
     'description' => 'Path where site specific PHP code files are stored if any. This directory is searched first if set.',
     'help_text' => NULL,
-  ),
-  'extensionsDir' => array(
+  ],
+  'extensionsDir' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group_name' => 'Directory Preferences',
     'group' => 'directory',
@@ -132,6 +132,6 @@ return array(
     'is_contact' => 0,
     'description' => 'Path where CiviCRM extensions are stored.',
     'help_text' => NULL,
-  ),
+  ],
 
-);
+];
index c4cef76b023e448badbb5529cc31d4c484abc067..f3584cca0c39ace37633096aa4144fac7cd8e5a7 100644 (file)
@@ -34,8 +34,8 @@
 /**
  * Settings metadata file
  */
-return array(
-  'enable_cart' => array(
+return [
+  'enable_cart' => [
     'name' => 'enable_cart',
     'group_name' => 'Event Preferences',
     'settings_pages' => ['event' => ['weight' => 10]],
@@ -50,8 +50,8 @@ return array(
     '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'),
     'help_text' => '',
     'documentation_link' => ['page' => 'CiviEvent Cart Checkout', 'resource' => 'wiki'],
-  ),
-  'show_events' => array(
+  ],
+  'show_events' => [
     'name' => 'show_events',
     'group_name' => 'Event Preferences',
     'group' => 'event',
@@ -67,5 +67,5 @@ return array(
     'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'),
     'help_text' => NULL,
     'pseudoconstant' => ['callback' => 'CRM_Core_SelectValues::getDashboardEntriesCount'],
-  ),
-);
+  ],
+];
index 5a93c89a8f05f1a09a2217bcab8990395ec5278b..7868058472c6f4cb0894f3ac9c58f697ab2e5ca2 100644 (file)
 /*
  * Settings metadata file
  */
-return array(
-  'ext_repo_url' => array(
+return [
+  'ext_repo_url' => [
     'group_name' => 'Extension Preferences',
     'group' => 'ext',
     'name' => 'ext_repo_url',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 128,
-    ),
+    ],
     'html_type' => 'text',
     'default' => 'https://civicrm.org/extdir/ver={ver}|cms={uf}',
     'add' => '4.3',
@@ -54,5 +54,5 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => '',
-  ),
-);
+  ],
+];
index 3d15ee0f2278abfbdb54d14e7f7eaf5e30aca0bb..151eb66abe560fb48460cbc1376c0dc4f5be6cae 100644 (file)
@@ -36,8 +36,8 @@
  * Settings metadata file
  */
 
-return array(
-  'customTranslateFunction' => array(
+return [
+  'customTranslateFunction' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -48,24 +48,24 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '30',
       'maxlength' => '100',
-    ),
+    ],
     'default' => NULL,
     'title' => 'Custom Translate Function',
     'description' => '',
-  ),
-  'monetaryThousandSeparator' => array(
+  ],
+  'monetaryThousandSeparator' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'monetaryThousandSeparator',
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
-    ),
+    ],
     'default' => ',',
     'add' => '4.3',
     'title' => 'Thousands Separator',
@@ -73,17 +73,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'monetaryDecimalPoint' => array(
+  ],
+  'monetaryDecimalPoint' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'monetaryDecimalPoint',
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
-    ),
+    ],
     'default' => '.',
     'add' => '4.3',
     'title' => 'Decimal Delimiter',
@@ -91,8 +91,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'moneyformat' => array(
+  ],
+  'moneyformat' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'moneyformat',
@@ -106,8 +106,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'moneyvalueformat' => array(
+  ],
+  'moneyvalueformat' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'moneyvalueformat',
@@ -121,17 +121,17 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'defaultCurrency' => array(
+  ],
+  'defaultCurrency' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'defaultCurrency',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'USD',
     'add' => '4.3',
     'title' => 'Default Currency',
@@ -139,23 +139,23 @@ return array(
     'is_contact' => 0,
     'description' => 'Default currency assigned to contributions and other monetary transactions.',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
-    ),
-    'on_change' => array(
+    ],
+    'on_change' => [
       'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
-    ),
-  ),
-  'defaultContactCountry' => array(
+    ],
+  ],
+  'defaultContactCountry' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'defaultContactCountry',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'add' => '4.4',
     'title' => 'Default Country',
     'is_domain' => 1,
@@ -163,11 +163,11 @@ return array(
     'is_required' => FALSE,
     'description' => 'This value is selected by default when adding a new contact address.',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
-    ),
-  ),
-  'defaultContactStateProvince' => array(
+    ],
+  ],
+  'defaultContactStateProvince' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -185,54 +185,54 @@ return array(
     'default' => NULL,
     'title' => 'Default State/Province',
     'description' => 'This value is selected by default when adding a new contact address.',
-  ),
-  'countryLimit' => array(
+  ],
+  'countryLimit' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'countryLimit',
     'type' => 'Array',
     'quick_form_type' => 'Element',
     'html_type' => 'advmultiselect',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 5,
       'style' => 'width:150px',
       'class' => 'advmultiselect',
-    ),
-    'default' => array(),
+    ],
+    'default' => [],
     'add' => '4.3',
     'title' => 'Available Countries',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
-    ),
-  ),
-  'provinceLimit' => array(
+    ],
+  ],
+  'provinceLimit' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'provinceLimit',
     'type' => 'Array',
     'quick_form_type' => 'Element',
     'html_type' => 'advmultiselect',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 5,
       'style' => 'width:150px',
       'class' => 'advmultiselect',
-    ),
-    'default' => array(),
+    ],
+    'default' => [],
     'add' => '4.3',
     'title' => 'Available States and Provinces (by Country)',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
-    ),
-  ),
-  'inheritLocale' => array(
+    ],
+  ],
+  'inheritLocale' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'inheritLocale',
@@ -245,8 +245,8 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'dateformatDatetime' => array(
+  ],
+  'dateformatDatetime' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatDatetime',
@@ -260,8 +260,8 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'dateformatFull' => array(
+  ],
+  'dateformatFull' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatFull',
@@ -275,8 +275,8 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'dateformatPartial' => array(
+  ],
+  'dateformatPartial' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'dateformatPartial',
@@ -290,8 +290,8 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'dateformatTime' => array(
+  ],
+  'dateformatTime' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -302,15 +302,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '12',
       'maxlength' => '60',
-    ),
+    ],
     'default' => '%l:%M %P',
     'title' => 'Date Format: Time Only',
     'description' => '',
-  ),
-  'dateformatYear' => array(
+  ],
+  'dateformatYear' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -321,15 +321,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '12',
       'maxlength' => '60',
-    ),
+    ],
     'default' => '%Y',
     'title' => 'Date Format: Year Only',
     'description' => '',
-  ),
-  'dateformatFinancialBatch' => array(
+  ],
+  'dateformatFinancialBatch' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -340,15 +340,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '12',
       'maxlength' => '60',
-    ),
+    ],
     'default' => '%m/%d/%Y',
     'title' => 'Date Format: Financial Batch',
     'description' => '',
-  ),
-  'dateformatshortdate' => array(
+  ],
+  'dateformatshortdate' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -359,15 +359,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '12',
       'maxlength' => '60',
-    ),
+    ],
     'default' => '%m/%d/%Y',
     'title' => 'Date Format: Short date Month Day Year',
     'description' => '',
-  ),
-  'dateInputFormat' => array(
+  ],
+  'dateInputFormat' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -378,14 +378,14 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
-    ),
+    ],
     'default' => 'mm/dd/yy',
     'title' => 'Date Input Format',
     'description' => '',
-  ),
-  'fieldSeparator' => array(
+  ],
+  'fieldSeparator' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -396,15 +396,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '2',
       'maxlength' => '8',
-    ),
+    ],
     'default' => ',',
     'title' => 'Import / Export Field Separator',
     'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
-  ),
-  'fiscalYearStart' => array(
+  ],
+  'fiscalYearStart' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -415,21 +415,21 @@ return array(
     'type' => 'Array',
     'quick_form_type' => 'MonthDay',
     'html_type' => 'MonthDay',
-    'default' => array('M' => 1, 'd' => 1),
+    'default' => ['M' => 1, 'd' => 1],
     'title' => 'Fiscal Year Start',
     'description' => '',
-  ),
-  'languageLimit' => array(
+  ],
+  'languageLimit' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'languageLimit',
     'type' => 'Array',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'multiple' => 1,
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => NULL,
     'add' => '4.3',
     'title' => 'Available Languages (Multi-lingual)',
@@ -437,21 +437,21 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_I18n::languages',
-    ),
-  ),
-  'uiLanguages' => array(
+    ],
+  ],
+  'uiLanguages' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'uiLanguages',
     'type' => 'Array',
     'quick_form_type' => 'Select',
     'html_type' => 'select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'multiple' => 1,
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => NULL,
     'add' => '5.9',
     'title' => 'Available Languages',
@@ -459,20 +459,20 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => ts('User Interface languages available to users'),
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_I18n::languages',
-    ),
-  ),
-  'lcMessages' => array(
+    ],
+  ],
+  'lcMessages' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'lcMessages',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'en_US',
     'add' => '4.3',
     'title' => 'Default Language',
@@ -480,14 +480,14 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
-    ),
-    'on_change' => array(
+    ],
+    'on_change' => [
       'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
-    ),
-  ),
-  'legacyEncoding' => array(
+    ],
+  ],
+  'legacyEncoding' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -498,15 +498,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '12',
       'maxlength' => '30',
-    ),
+    ],
     'default' => 'Windows-1252',
     'title' => 'Legacy Encoding',
     'description' => 'If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.',
-  ),
-  'timeInputFormat' => array(
+  ],
+  'timeInputFormat' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -517,26 +517,26 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::getTimeFormats',
-    ),
+    ],
     'default' => '1',
     'title' => 'Time Input Format',
     'description' => '',
-    'on_change' => array(
+    'on_change' => [
       'CRM_Core_BAO_PreferencesDate::onChangeSetting',
-    ),
-  ),
-  'weekBegins' => array(
+    ],
+  ],
+  'weekBegins' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'weekBegins',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
-    ),
+    ],
     'default' => '0',
     'add' => '4.7',
     'title' => 'Week begins on',
@@ -544,20 +544,20 @@ return array(
     'is_contact' => 0,
     'description' => "",
     'help_text' => NULL,
-  ),
-  'contact_default_language' => array(
+  ],
+  'contact_default_language' => [
     'group_name' => 'Localization Preferences',
     'group' => 'localization',
     'name' => 'contact_default_language',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
-    ),
+    ],
     'default' => '*default*',
     'add' => '4.7',
     'title' => 'Default Language for contacts',
@@ -566,5 +566,5 @@ return array(
     'description' => 'Default language (if any) for contact records',
     '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',
-  ),
-);
+  ],
+];
index 949ac6fa9c623a470dffaf46bd0681c96e0da54d..7ea68f55153af7944e3781aeb702cc37ad73db3a 100644 (file)
@@ -36,8 +36,8 @@
  * Settings metadata file
  */
 
-return array(
-  'profile_double_optin' => array(
+return [
+  'profile_double_optin' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'profile_double_optin',
@@ -50,8 +50,8 @@ return array(
     'is_contact' => 0,
     '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.'),
     'help_text' => NULL,
-  ),
-  'track_civimail_replies' => array(
+  ],
+  'track_civimail_replies' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'track_civimail_replies',
@@ -65,8 +65,8 @@ return array(
     'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To. '),
     'help_text' => NULL,
     'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
-  ),
-  'civimail_workflow' => array(
+  ],
+  'civimail_workflow' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'civimail_workflow',
@@ -79,8 +79,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).'),
     'help_text' => NULL,
-  ),
-  'civimail_server_wide_lock' => array(
+  ],
+  'civimail_server_wide_lock' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'civimail_server_wide_lock',
@@ -93,8 +93,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'replyTo' => array(
+  ],
+  'replyTo' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'replyTo',
@@ -107,22 +107,22 @@ return array(
     'is_contact' => 0,
     'description' => 'Allow CiviMail users to send mailings with a custom Reply-To header',
     'help_text' => NULL,
-  ),
-  'mailing_backend' => array(
+  ],
+  'mailing_backend' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'mailing_backend',
     'type' => 'Array',
     'html_type' => 'checkbox',
-    'default' => array('outBound_option' => '3'),
+    'default' => ['outBound_option' => '3'],
     'add' => '4.1',
     'title' => 'Mailing Backend',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'profile_add_to_group_double_optin' => array(
+  ],
+  'profile_add_to_group_double_optin' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'profile_add_to_group_double_optin',
@@ -135,8 +135,8 @@ return array(
     'is_contact' => 0,
     '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.'),
     'help_text' => NULL,
-  ),
-  'disable_mandatory_tokens_check' => array(
+  ],
+  'disable_mandatory_tokens_check' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'disable_mandatory_tokens_check',
@@ -149,8 +149,8 @@ return array(
     'is_contact' => 0,
     '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.'),
     'help_text' => NULL,
-  ),
-  'dedupe_email_default' => array(
+  ],
+  'dedupe_email_default' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'dedupe_email_default',
@@ -163,8 +163,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Set the "dedupe e-mail" option when sending a new mailing to "true" by default.'),
     'help_text' => NULL,
-  ),
-  'hash_mailing_url' => array(
+  ],
+  'hash_mailing_url' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'hash_mailing_url',
@@ -177,8 +177,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID'),
     'help_text' => NULL,
-  ),
-  'civimail_multiple_bulk_emails' => array(
+  ],
+  'civimail_multiple_bulk_emails' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'civimail_multiple_bulk_emails',
@@ -191,8 +191,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('CiviMail will deliver a copy of the email to each bulk email listed for the contact. Enabling this setting will also change the options for the "Email on Hold" field in Advanced Search.'),
     'help_text' => NULL,
-  ),
-  'include_message_id' => array(
+  ],
+  'include_message_id' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'include_message_id',
@@ -205,18 +205,18 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'mailerBatchLimit' => array(
+  ],
+  'mailerBatchLimit' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'mailerBatchLimit',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 0,
     'add' => '4.7',
     'title' => 'Mailer Batch Limit',
@@ -224,18 +224,18 @@ return array(
     'is_contact' => 0,
     'description' => 'Throttle email delivery by setting the maximum number of emails sent during each CiviMail run (0 = unlimited).',
     'help_text' => NULL,
-  ),
-  'mailerJobSize' => array(
+  ],
+  'mailerJobSize' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'mailerJobSize',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 0,
     'add' => '4.7',
     'title' => 'Mailer Job Size',
@@ -243,18 +243,18 @@ return array(
     'is_contact' => 0,
     'description' => 'If you want to utilize multi-threading enter the size you want your sub jobs to be split into. Recommended values are between 1,000 and 10,000. Use a lower value if your server has multiple cron jobs running simultaneously, but do not use values smaller than 1,000. Enter "0" to disable multi-threading and process mail as one single job - batch limits still apply.',
     'help_text' => NULL,
-  ),
-  'mailerJobsMax' => array(
+  ],
+  'mailerJobsMax' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'mailerJobsMax',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 0,
     'add' => '4.7',
     'title' => 'Mailer Cron Job Limit',
@@ -262,18 +262,18 @@ return array(
     'is_contact' => 0,
     'description' => 'The maximum number of mailer delivery jobs executing simultaneously (0 = allow as many processes to execute as started by cron)',
     'help_text' => NULL,
-  ),
-  'mailThrottleTime' => array(
+  ],
+  'mailThrottleTime' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'mailThrottleTime',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 0,
     'add' => '4.7',
     'title' => 'Mailer Throttle Time',
@@ -281,18 +281,18 @@ return array(
     'is_contact' => 0,
     'description' => 'The time to sleep in between each e-mail in micro seconds. Setting this above 0 allows you to control the rate at which e-mail messages are sent to the mail server, avoiding filling up the mail queue very quickly. Set to 0 to disable.',
     'help_text' => NULL,
-  ),
-  'verpSeparator' => array(
+  ],
+  'verpSeparator' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'verpSeparator',
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 32,
-    ),
+    ],
     'default' => '.',
     'add' => '4.7',
     'title' => 'VERP Separator',
@@ -300,8 +300,8 @@ return array(
     'is_contact' => 0,
     'description' => 'Separator character used when CiviMail generates VERP (variable envelope return path) Mail-From addresses.',
     'help_text' => NULL,
-  ),
-  'write_activity_record' => array(
+  ],
+  'write_activity_record' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'write_activity_record',
@@ -315,26 +315,26 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'simple_mail_limit' => array(
+  ],
+  'simple_mail_limit' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'simple_mail_limit',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 4,
       'maxlength' => 8,
-    ),
+    ],
     'default' => 50,
     'title' => 'Simple mail limit',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => 'The number of emails sendable via simple mail. Make sure you understand the implications for your spam reputation and legal requirements for bulk emails before editing. As there is some risk both to your spam reputation and the products if this is misused it is a hidden setting',
     'help_text' => 'CiviCRM forces users sending more than this number of mails to use CiviMails. CiviMails have additional precautions: not sending to contacts who do not want bulk mail, adding domain name and opt out links. You should familiarise yourself with the law relevant to you on bulk mailings if changing this setting. For the US https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003 is a good place to start.',
-  ),
-  'auto_recipient_rebuild' => array(
+  ],
+  'auto_recipient_rebuild' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'auto_recipient_rebuild',
@@ -347,8 +347,8 @@ return array(
     'is_contact' => 0,
     'description' => ts('Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.'),
     'help_text' => ts('CiviMail automatically fetches recipient list and count whenever mailing groups are included or excluded while composing bulk mail. This phenomena may degrade performance for large sites, so disable this setting to build and fetch recipients for selected groups, manually.'),
-  ),
-  'allow_mail_from_logged_in_contact' => array(
+  ],
+  'allow_mail_from_logged_in_contact' => [
     'group_name' => 'Mailing Preferences',
     'group' => 'mailing',
     'name' => 'allow_mail_from_logged_in_contact',
@@ -360,5 +360,5 @@ return array(
     'is_contact' => 0,
     'description' => 'Allow sending email from the logged in contact\'s email address',
     'help_text' => 'CiviCRM allows you to send email from the domain from email addresses and the logged in contact id addresses by default. Disable this if you only want to allow the domain from addresses to be used.',
-  ),
-);
+  ],
+];
index 6d2b0464f28d10de73a5217257bb1eb3a5150b2b..d89557c77dd5b3627f425215a14e29f3a2b3bb48 100644 (file)
@@ -33,8 +33,8 @@
  *
  * Settings metadata file
  */
-return array(
-  'geoAPIKey' => array(
+return [
+  'geoAPIKey' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -45,15 +45,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '32',
       'maxlength' => '64',
-    ),
+    ],
     'default' => NULL,
     'title' => 'Geo Provider Key',
     'description' => 'Enter the API key or Application ID associated with your geocoding provider (not required for Yahoo).',
-  ),
-  'geoProvider' => array(
+  ],
+  'geoProvider' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -64,17 +64,17 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::geoProvider',
-    ),
+    ],
     'default' => NULL,
     'title' => 'Geocoding Provider',
     'description' => 'This can be the same or different from the mapping provider selected.',
-  ),
-  'mapAPIKey' => array(
+  ],
+  'mapAPIKey' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -85,15 +85,15 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => '32',
       'maxlength' => '64',
-    ),
+    ],
     'default' => NULL,
     'title' => 'Map Provider Key',
     'description' => 'Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.',
-  ),
-  'mapProvider' => array(
+  ],
+  'mapProvider' => [
     'add' => '4.7',
     'help_text' => NULL,
     'is_domain' => 1,
@@ -104,14 +104,14 @@ return array(
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::mapProvider',
-    ),
+    ],
     'default' => NULL,
     'title' => 'Mapping Provider',
     'description' => 'Choose the mapping provider that has the best coverage for the majority of your contact addresses.',
-  ),
-);
+  ],
+];
index 37eb7bfc74b4c7fa434083dbbe78335b5487b1e2..31d636ee8a57020c2518f9b032d59a62d2e1f9c9 100644 (file)
  * Settings metadata file
  */
 
-return array(
-  'default_renewal_contribution_page' => array(
+return [
+  'default_renewal_contribution_page' => [
     'group_name' => 'Member Preferences',
     'group' => 'member',
     'name' => 'default_renewal_contribution_page',
     'type' => 'Integer',
     'html_type' => 'select',
     'default' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       // @todo - handle table style pseudoconstants for settings & avoid deprecated function.
       'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
-    ),
+    ],
     'add' => '4.1',
     'title' => 'Default online membership renewal page',
     'is_domain' => 1,
     'is_contact' => 0,
     '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.'),
     'help_text' => NULL,
-  ),
-);
+  ],
+];
index 6f4770bba19905c848315efa3248b78f7d196674..f82304b9103960f36c1c2b5316f40c270baea797 100644 (file)
@@ -35,8 +35,8 @@
  * Settings metadata file
  */
 
-return array(
-  'is_enabled' => array(
+return [
+  'is_enabled' => [
     'group_name' => 'Multi Site Preferences',
     'group' => 'multisite',
     'name' => 'is_enabled',
@@ -50,23 +50,23 @@ return array(
     '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,
-  ),
-  'domain_group_id' => array(
+  ],
+  'domain_group_id' => [
     'group_name' => 'Multi Site Preferences',
     'group' => 'multisite',
     'name' => 'domain_group_id',
     'title' => ts('Multisite Domain Group'),
     'type' => 'Integer',
     'html_type' => 'entity_reference',
-    'entity_reference_options' => ['entity' => 'Group', 'select' => array('minimumInputLength' => 0)],
+    'entity_reference_options' => ['entity' => 'Group', 'select' => ['minimumInputLength' => 0]],
     'default' => '0',
     'add' => '4.1',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => ts('Contacts created on this site are added to this group'),
     'help_text' => NULL,
-  ),
-  'event_price_set_domain_id' => array(
+  ],
+  'event_price_set_domain_id' => [
     'group_name' => 'Multi Site Preferences',
     'group' => 'multisite',
     'name' => 'event_price_set_domain_id',
@@ -78,8 +78,8 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-  'uniq_email_per_site' => array(
+  ],
+  'uniq_email_per_site' => [
     'group_name' => 'Multi Site Preferences',
     'group' => 'multisite',
     'name' => 'uniq_email_per_site',
@@ -91,5 +91,5 @@ return array(
     'is_contact' => 0,
     'description' => '',
     'help_text' => NULL,
-  ),
-);
+  ],
+];
index f4db966c90d385f03bf9fb6d3cfd4cc82265fbc1..043fe559bd22e35928670a0e09219d4bc324a5cd 100644 (file)
 /*
  * Settings metadata file
  */
-return array(
-  'search_autocomplete_count' => array(
+return [
+  'search_autocomplete_count' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'search_autocomplete_count',
     'type' => 'Integer',
     'quick_form_type' => 'Element',
     'html_type' => 'text',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 2,
       'maxlength' => 2,
-    ),
+    ],
     'default' => 10,
     'add' => '4.3',
     'title' => 'Autocomplete Results',
@@ -54,8 +54,8 @@ return array(
     'is_contact' => 0,
     'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
     'help_text' => NULL,
-  ),
-  'enable_innodb_fts' => array(
+  ],
+  'enable_innodb_fts' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'enable_innodb_fts',
@@ -68,20 +68,20 @@ return array(
     'is_contact' => 0,
     'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
     'help_text' => NULL,
-    'on_change' => array(
-      array('CRM_Core_InnoDBIndexer', 'onToggleFts'),
-    ),
-  ),
-  'fts_query_mode' => array(
+    'on_change' => [
+      ['CRM_Core_InnoDBIndexer', 'onToggleFts'],
+    ],
+  ],
+  'fts_query_mode' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'fts_query_mode',
     'type' => 'String',
     'quick_form_type' => 'Element',
-    'html_attributes' => array(
+    'html_attributes' => [
       'size' => 64,
       'maxlength' => 64,
-    ),
+    ],
     'html_type' => 'text',
     'default' => 'simple',
     'add' => '4.5',
@@ -90,8 +90,8 @@ return array(
     'is_contact' => 0,
     'description' => NULL,
     'help_text' => NULL,
-  ),
-  'includeOrderByClause' => array(
+  ],
+  'includeOrderByClause' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeOrderByClause',
@@ -104,8 +104,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
     'help_text' => NULL,
-  ),
-  'includeWildCardInName' => array(
+  ],
+  'includeWildCardInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeWildCardInName',
@@ -118,8 +118,8 @@ return array(
     'is_contact' => 0,
     'description' => "If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'.",
     'help_text' => NULL,
-  ),
-  'includeEmailInName' => array(
+  ],
+  'includeEmailInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeEmailInName',
@@ -132,8 +132,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.',
     'help_text' => NULL,
-  ),
-  'includeNickNameInName' => array(
+  ],
+  'includeNickNameInName' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeNickNameInName',
@@ -146,8 +146,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, nicknames are automatically included when users search by Name.',
     'help_text' => NULL,
-  ),
-  'includeAlphabeticalPager' => array(
+  ],
+  'includeAlphabeticalPager' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'includeAlphabeticalPager',
@@ -160,8 +160,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.',
     'help_text' => NULL,
-  ),
-  'smartGroupCacheTimeout' => array(
+  ],
+  'smartGroupCacheTimeout' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'smartGroupCacheTimeout',
@@ -175,20 +175,20 @@ return array(
     'is_contact' => 0,
     'description' => 'The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.',
     'help_text' => NULL,
-  ),
-  'defaultSearchProfileID' => array(
+  ],
+  'defaultSearchProfileID' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'defaultSearchProfileID',
     'type' => 'Integer',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       'class' => 'crm-select2',
-    ),
-    'pseudoconstant' => array(
+    ],
+    'pseudoconstant' => [
       'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
-    ),
+    ],
     'default' => NULL,
     'add' => '4.6',
     'title' => 'Default Contact Search Profile',
@@ -196,29 +196,29 @@ return array(
     'is_contact' => 0,
     'description' => 'If set, this will be the default profile used for contact search.',
     'help_text' => NULL,
-  ),
-  'prevNextBackend' => array(
+  ],
+  'prevNextBackend' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'prevNextBackend',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'default',
     'add' => '5.9',
     'title' => 'PrevNext Cache',
     'is_domain' => 1,
     'is_contact' => 0,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
-    ),
+    ],
     'description' => 'When performing a search, how should the search-results be cached?',
     'help_text' => '',
-  ),
-  'searchPrimaryDetailsOnly' => array(
+  ],
+  'searchPrimaryDetailsOnly' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'searchPrimaryDetailsOnly',
@@ -231,8 +231,8 @@ return array(
     'is_contact' => 0,
     'description' => 'If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.',
     'help_text' => NULL,
-  ),
-  'quicksearch_options' => array(
+  ],
+  'quicksearch_options' => [
     'group_name' => 'Search Preferences',
     'group' => 'Search Preferences',
     'name' => 'quicksearch_options',
@@ -240,15 +240,15 @@ return array(
     'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
     'quick_form_type' => 'CheckBoxes',
     'html_type' => 'checkboxes',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => 'CRM_Core_SelectValues::quicksearchOptions',
-    ),
-    'default' => array('sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'),
+    ],
+    'default' => ['sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'],
     'add' => '5.8',
     'title' => ts('Quicksearch options'),
     'is_domain' => '1',
     'is_contact' => 0,
     'description' => ts("Which fields can be searched on in the menubar quicksearch box? Don't see your custom field here? Make sure it is marked as Searchable."),
     'help_text' => NULL,
-  ),
-);
+  ],
+];
index 5aa76c4947caaabb4440b3297a2fc6a08fe5986e..01bc414802cfb6e869d5fb182b64ea26561ccb2e 100644 (file)
@@ -35,8 +35,8 @@
 /*
  * Settings metadata file
  */
-return array(
-  'userFrameworkResourceURL' => array(
+return [
+  'userFrameworkResourceURL' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group' => 'url',
     'group_name' => 'URL Preferences',
@@ -52,8 +52,8 @@ return array(
     'description' => 'Absolute URL of the location where the civicrm module or component has been installed.',
     'help_text' => NULL,
     'validate_callback' => 'CRM_Utils_Rule::urlish',
-  ),
-  'imageUploadURL' => array(
+  ],
+  'imageUploadURL' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group' => 'url',
     'group_name' => 'URL Preferences',
@@ -69,8 +69,8 @@ return array(
     'description' => 'URL of the location for uploaded image files.',
     'help_text' => NULL,
     'validate_callback' => 'CRM_Utils_Rule::urlish',
-  ),
-  'customCSSURL' => array(
+  ],
+  'customCSSURL' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group' => 'url',
     'group_name' => 'URL Preferences',
@@ -86,8 +86,8 @@ return array(
     'description' => 'You can modify the look and feel of CiviCRM by adding your own stylesheet. For small to medium sized modifications, use your css file to override some of the styles in civicrm.css. Or if you need to make drastic changes, you can choose to disable civicrm.css completely.',
     'help_text' => NULL,
     'validate_callback' => 'CRM_Utils_Rule::urlish',
-  ),
-  'extensionsURL' => array(
+  ],
+  'extensionsURL' => [
     'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
     'group' => 'url',
     'group_name' => 'URL Preferences',
@@ -103,5 +103,5 @@ return array(
     'description' => 'Base URL for extension resources (images, stylesheets, etc). This should match extensionsDir.',
     'help_text' => NULL,
     'validate_callback' => 'CRM_Utils_Rule::urlish',
-  ),
-);
+  ],
+];