(REF) CRM_Core_CodeGen_OptionGroup - Rename 'addValues($header, $rows)' to 'addValueT...
authorTim Otten <totten@civicrm.org>
Wed, 17 May 2023 19:42:50 +0000 (12:42 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 18 May 2023 06:35:23 +0000 (23:35 -0700)
84 files changed:
CRM/Core/CodeGen/OptionGroup.php
sql/civicrm_option_groups/accept_creditcard.sqldata.php
sql/civicrm_option_groups/account_relationship.sqldata.php
sql/civicrm_option_groups/acl_role.sqldata.php
sql/civicrm_option_groups/activity_contacts.sqldata.php
sql/civicrm_option_groups/activity_default_assignee.sqldata.php
sql/civicrm_option_groups/activity_status.sqldata.php
sql/civicrm_option_groups/activity_type.sqldata.php
sql/civicrm_option_groups/address_options.sqldata.php
sql/civicrm_option_groups/addressee.sqldata.php
sql/civicrm_option_groups/advanced_search_options.sqldata.php
sql/civicrm_option_groups/auto_renew_options.sqldata.php
sql/civicrm_option_groups/batch_mode.sqldata.php
sql/civicrm_option_groups/batch_status.sqldata.php
sql/civicrm_option_groups/batch_type.sqldata.php
sql/civicrm_option_groups/campaign_status.sqldata.php
sql/civicrm_option_groups/campaign_type.sqldata.php
sql/civicrm_option_groups/case_status.sqldata.php
sql/civicrm_option_groups/cg_extend_objects.sqldata.php
sql/civicrm_option_groups/communication_style.sqldata.php
sql/civicrm_option_groups/conference_slot.sqldata.php
sql/civicrm_option_groups/contact_autocomplete_options.sqldata.php
sql/civicrm_option_groups/contact_date_reminder_options.sqldata.php
sql/civicrm_option_groups/contact_edit_options.sqldata.php
sql/civicrm_option_groups/contact_reference_options.sqldata.php
sql/civicrm_option_groups/contact_smart_group_display.sqldata.php
sql/civicrm_option_groups/contact_view_options.sqldata.php
sql/civicrm_option_groups/contribution_recur_status.sqldata.php
sql/civicrm_option_groups/contribution_status.sqldata.php
sql/civicrm_option_groups/currencies_enabled.sqldata.php
sql/civicrm_option_groups/custom_data_type.sqldata.php
sql/civicrm_option_groups/custom_search.sqldata.php
sql/civicrm_option_groups/email_greeting.sqldata.php
sql/civicrm_option_groups/encounter_medium.sqldata.php
sql/civicrm_option_groups/engagement_index.sqldata.php
sql/civicrm_option_groups/entity_batch_extends.sqldata.php
sql/civicrm_option_groups/environment.sqldata.php
sql/civicrm_option_groups/event_badge.sqldata.php
sql/civicrm_option_groups/event_contacts.sqldata.php
sql/civicrm_option_groups/event_type.sqldata.php
sql/civicrm_option_groups/financial_account_type.sqldata.php
sql/civicrm_option_groups/financial_item_status.sqldata.php
sql/civicrm_option_groups/from_email_address.sqldata.php
sql/civicrm_option_groups/gender.sqldata.php
sql/civicrm_option_groups/group_type.sqldata.php
sql/civicrm_option_groups/individual_prefix.sqldata.php
sql/civicrm_option_groups/individual_suffix.sqldata.php
sql/civicrm_option_groups/instant_messenger_service.sqldata.php
sql/civicrm_option_groups/label_format.sqldata.php
sql/civicrm_option_groups/label_type.sqldata.php
sql/civicrm_option_groups/mail_approval_status.sqldata.php
sql/civicrm_option_groups/mail_protocol.sqldata.php
sql/civicrm_option_groups/mapping_type.sqldata.php
sql/civicrm_option_groups/mobile_provider.sqldata.php
sql/civicrm_option_groups/msg_mode.sqldata.php
sql/civicrm_option_groups/name_badge.sqldata.php
sql/civicrm_option_groups/note_privacy.sqldata.php
sql/civicrm_option_groups/note_used_for.sqldata.php
sql/civicrm_option_groups/paper_size.sqldata.php
sql/civicrm_option_groups/participant_listing.sqldata.php
sql/civicrm_option_groups/participant_role.sqldata.php
sql/civicrm_option_groups/payment_instrument.sqldata.php
sql/civicrm_option_groups/pcp_owner_notify.sqldata.php
sql/civicrm_option_groups/pcp_status.sqldata.php
sql/civicrm_option_groups/pdf_format.sqldata.php
sql/civicrm_option_groups/phone_type.sqldata.php
sql/civicrm_option_groups/pledge_status.sqldata.php
sql/civicrm_option_groups/postal_greeting.sqldata.php
sql/civicrm_option_groups/preferred_communication_method.sqldata.php
sql/civicrm_option_groups/priority.sqldata.php
sql/civicrm_option_groups/recent_items_providers.sqldata.php
sql/civicrm_option_groups/recur_frequency_units.sqldata.php
sql/civicrm_option_groups/redaction_rule.sqldata.php
sql/civicrm_option_groups/relative_date_filters.sqldata.php
sql/civicrm_option_groups/report_template.sqldata.php
sql/civicrm_option_groups/safe_file_extension.sqldata.php
sql/civicrm_option_groups/sms_api_type.sqldata.php
sql/civicrm_option_groups/soft_credit_type.sqldata.php
sql/civicrm_option_groups/tag_used_for.sqldata.php
sql/civicrm_option_groups/user_dashboard_options.sqldata.php
sql/civicrm_option_groups/visibility.sqldata.php
sql/civicrm_option_groups/website_type.sqldata.php
sql/civicrm_option_groups/wysiwyg_editor.sqldata.php
sql/civicrm_option_groups/wysiwyg_presets.sqldata.php

index ea1005d8e35e07f0542754f48d2eb0d9d6d4c796..aa9c02cd94824c1d4c4b66943fb5589f104dfa66 100644 (file)
@@ -84,7 +84,7 @@ class CRM_Core_CodeGen_OptionGroup {
    *
    * @return $this
    */
-  public function addValues(array $header, array $optionValues) : CRM_Core_CodeGen_OptionGroup {
+  public function addValueTable(array $header, array $optionValues) : CRM_Core_CodeGen_OptionGroup {
     foreach ($optionValues as $optionValue) {
       $row = [];
       foreach ($optionValue as $key => $value) {
index 283bb555b3d2318c32af74fddab3c0811ff2cd9a..d086e8281dc480397b4197a23ef1b2ee2a67219a 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('accept_creditcard', 'a/0009')
     'title' => ts('Accepted Credit Cards'),
     'description' => ts('The following credit card options will be offered to contributors using Online Contribution pages. You will need to verify which cards are accepted by your chosen Payment Processor and update these entries accordingly.') . ts('IMPORTANT: These options do not control credit card/payment method choices for sites and/or contributors using the PayPal Express service (e.g. where billing information is collected on the Payment Processor\\\'s website).'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Visa', 'Visa', 1],
     ['MasterCard', 'MasterCard', 2],
     ['Amex', 'Amex', 3],
index 2b297ea9ad8a905330b4a3c11268c5521a67615e..025bccf29fe54c3b06a6c60083d17df036f73da5 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('account_relationship', 'a/0061')
   ->addMetadata([
     'title' => ts('Account Relationship'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     // TODO: Shouldn't we have ts() for these descriptions?
     [ts('Income Account is'), 'Income Account is', 1, 'Income Account is', 'is_default' => 1],
     [ts('Credit/Contra Revenue Account is'), 'Credit/Contra Revenue Account is', 2, 'Credit/Contra Revenue Account is'],
index 665979c68bea36bb45aa1f3016684ff54e910955..95a001290a40143f9f44480604ba423edc09d399 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('acl_role', 'a/0008')
   ->addMetadata([
     'title' => ts('ACL Role'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Administrator'), 'Admin', 1],
     [ts('Authenticated'), 'Auth', 2, 'is_reserved' => 1],
   ]);
index 97db12f3d3331a0fe3330d5c9de231d196be04f5..8b54ea586707edfed1d8cb4d8a3d5e620c52dcd7 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('activity_contacts', 'a/0060')
     'title' => ts('Activity Contacts'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Activity Assignees'), 'Activity Assignees', 1, 3],
     [ts('Activity Source'), 'Activity Source', 2, 2],
     [ts('Activity Targets'), 'Activity Targets', 3, 1],
index a33e63108de29406577e7e753ed6c78063673ca1..c9b6de29ddef5c99b0673bbc0f0df77f6e96ec18 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('activity_default_assignee', 'a/0082
   ->addMetadata([
     'title' => ts('Activity default assignee'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('None'), 'NONE', 1, 1, 'is_default' => 1],
     [ts('By relationship to case client'), 'BY_RELATIONSHIP', 2, 1],
     [ts('Specific contact'), 'SPECIFIC_CONTACT', 3, 1],
index 22c0c1b6982f9ee1fa2247e0a3ac0e9bc13f7393..5f691bcc984a772875ba41313f442e7c51188bb2 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('activity_status', 'a/0024')
     'data_type' => 'Integer',
     'option_value_fields' => 'name,label,description,color',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Scheduled'), 'Scheduled', 1, 'is_default' => 1, 'is_reserved' => 1],
     [ts('Completed'), 'Completed', 2, 'filter' => 1, 'is_reserved' => 1],
     [ts('Cancelled'), 'Cancelled', 3, 'filter' => 2, 'is_reserved' => 1],
index 8de21bb27491f656e5ccb117b5dc3f2ea7dbc22e..afd079a430725e1f43683eba29f1636b8edf9c15 100644 (file)
@@ -7,7 +7,7 @@ return CRM_Core_CodeGen_OptionGroup::create('activity_type', 'a/0002')
     'data_type' => 'Integer',
     'option_value_fields' => 'name,label,description,icon',
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Meeting'), 'Meeting', '1', '1', 'is_reserved' => '1', 'icon' => 'fa-slideshare'],
     [ts('Phone Call'), 'Phone Call', '2', '2', 'is_reserved' => '1', 'icon' => 'fa-phone'],
     [ts('Email'), 'Email', '3', '3', 'filter' => '1', 'description' => ts('Email sent.'), 'is_reserved' => '1', 'icon' => 'fa-envelope-o'],
index ae230b0badfb56244255c57ab30641d5522369ce..6b83ffc229dbcb5a01a1ea357ee846bbcd2d1d46 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('address_options', 'a/0021')
   ->addMetadata([
     'title' => ts('Addressing Options'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Street Address'), 'street_address', 1],
     [ts('Supplemental Address 1'), 'supplemental_address_1', 2],
     [ts('Supplemental Address 2'), 'supplemental_address_2', 3],
index 33eb2ca46730fdfcadf9ddea737bb7b825cb475b..6cf090be50064d3fed4f010b38c9afb74988bd1a 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('addressee', 'a/0042')
   ->addMetadata([
     'title' => ts('Addressee Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['{contact.prefix_id:label}{ }{contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.suffix_id:label}', '{contact.prefix_id:label}{ }{contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.suffix_id:label}', 1, 'filter' => 1, 'is_default' => 1],
     ['{contact.household_name}', '{contact.household_name}', 2, 'filter' => 2, 'is_default' => 1],
     ['{contact.organization_name}', '{contact.organization_name}', 3, 'filter' => 3, 'is_default' => 1],
index 5cf60799c7d822ddc1a221f3ed38c1c17bf46828..534802718e4a0648cd0da68e943010e0f1866ee3 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('advanced_search_options', 'a/0019')
     'title' => ts('Advanced Search Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Address Fields'), 'location', 1, 1],
     [ts('Custom Fields'), 'custom', 2, 2],
     [ts('Activities'), 'activity', 3, 4],
index f6c5ccd974842e0ef505b220ab5fd65fd24eec0c..68985a7184ac98a8a6381ac24feb0387fe166310 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('auto_renew_options', 'a/0069')
     'title' => ts('Auto Renew Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Renewal Reminder (non-auto-renew memberships only)'), 'Renewal Reminder (non-auto-renew memberships only)', 1],
     [ts('Auto-renew Memberships Only'), 'Auto-renew Memberships Only', 2],
     [ts('Reminder for Both'), 'Reminder for Both', 3],
index 9270d33f1a51d958a93f4cd58d1d90eb595dea7b..95f9d496ffaaa7dba3bac8a0e8f7934212c945aa 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('batch_mode', 'a/0065')
     'title' => ts('Batch Mode'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     // TODO: Shouldn't we have ts() for these descriptions?
     [ts('Manual Batch'), 'Manual Batch', 1, 'Manual Batch', 'is_reserved' => 1, 'component_id' => 2],
     [ts('Automatic Batch'), 'Automatic Batch', 2, 'Automatic Batch', 'is_reserved' => 1, 'component_id' => 2],
index 2f5cd6cc7168289f11eb493e5d4f701c88e25755..61d1719b22b028bc094839caee59ad39f98f4176 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('batch_status', 'a/0066')
     'title' => ts('Batch Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Open'), 'Open', 1],
     [ts('Closed'), 'Closed', 2],
     [ts('Data Entry'), 'Data Entry', 3],
index 3870705578a79f852feff490077cfb4fb59d609a..2278d1ee1b240e97b11d9d3181a391d72e5a4c6b 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('batch_type', 'a/0064')
     'title' => ts('Batch Type'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Contribution'), 'Contribution', 1],
     [ts('Membership'), 'Membership', 2],
     [ts('Pledge Payment'), 'Pledge Payment', 3],
index 69a7789469aee8a5b15e0143c3cdb81dc5a5e8d6..fe0e8e7d7960adad4b87081de6224820f3cda20c 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('campaign_status', 'a/0052')
   ->addMetadata([
     'title' => ts('Campaign Status'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Planned'), 'Planned', 1, 1],
     [ts('In Progress'), 'In Progress', 2, 1],
     [ts('Completed'), 'Completed', 3, 1],
index 1272e6fbe954f9d0a7a93a110fd9b2996131fb31..c78c111757c0a3dde7e0b30f2cbe177c98344aeb 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('campaign_type', 'a/0051')
   ->addMetadata([
     'title' => ts('Campaign Type'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Direct Mail'), 'Direct Mail', 1, 1],
     [ts('Referral Program'), 'Referral Program', 2, 1],
     [ts('Constituent Engagement'), 'Constituent Engagement', 3, 1],
index b22bf24cac6fffbc539afdca4a8d6faa41b58c89..e9125de8bbab295ef091558ecdf70352ed1d3e19 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('case_status', 'a/0026')
     'title' => ts('Case Status'),
     'option_value_fields' => 'name,label,description,color',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Ongoing'), 'Open', 1, 'grouping' => 'Opened', 'is_default' => 1, 'is_reserved' => 1],
     [ts('Resolved'), 'Closed', 2, 'grouping' => 'Closed', 'is_reserved' => 1],
     [ts('Urgent'), 'Urgent', 3, 'grouping' => 'Opened'],
index 7cc839b7e64be74577622fbeb6a8b0d027709c60..467688aaf5d4fb6dc12329c0c4b95ffc801172f0 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('cg_extend_objects', 'a/0056')
   ->addMetadata([
     'title' => ts('Objects a custom group extends to'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Survey'), 'civicrm_survey', 'Survey'],
     [ts('Cases'), 'civicrm_case', 'Case', 'grouping' => 'case_type_id'],
   ]);
index 518a80b96eba37fc38dc4461f711a64b0ab239f8..c3de9f55f3d5adec03d683dc81e9deeacb339246 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('communication_style', 'a/0074')
   ->addMetadata([
     'title' => ts('Communication Style'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Formal'), 'formal', 1, 'is_default' => 1],
     [ts('Familiar'), 'familiar', 2],
   ]);
index d9a0aab176992ec36e36ae0a1772611be505ad0a..8748d52e4a85a5ae44049e3b2477190dd512934f 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('conference_slot', 'a/0063')
   ->addMetadata([
     'title' => ts('Conference Slot'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Morning Sessions'), 'Morning Sessions', 1],
     [ts('Evening Sessions'), 'Evening Sessions', 2],
   ]);
index e6f91576daa9c9e0f7673a99d192ece1eccabe2e..e5ded1102a9d9e714d64871aa8a28144a471a5ab 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_autocomplete_options', 'a/0
     'title' => ts('Autocomplete Contact Search'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Email Address'), 'email', 2, 2],
     [ts('Phone'), 'phone', 3, 3],
     [ts('Street Address'), 'street_address', 4, 4],
index 91596a4f3909c4ecdccf68249e925b3780cd02ac..888e0b6485de513bc0c2ee5e2d4e8444d3a84b06 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_date_reminder_options', 'a/
     'title' => ts('Contact Date Reminder Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Actual date only'), 'Actual date only', 1, 'is_reserved' => 1],
     [ts('Each anniversary'), 'Each anniversary', 2, 'is_reserved' => 1],
   ])
index 31a093510ddc71de21c2e408fb1be050d90ad3b2..17d38f7306016c136e8e432322264ded921cddef 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_edit_options', 'a/0018')
     'title' => ts('Contact Edit Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Custom Data'), 'CustomData', 1],
     [ts('Address'), 'Address', 2],
     [ts('Communication Preferences'), 'CommunicationPreferences', 3],
index 61d6d57fcd078bd4935fa59627df7d2af6d9a56a..f5fe5e5c2aaae65b0df77bc18c0272239a356441 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_reference_options', 'a/0044
     'title' => ts('Contact Reference Autocomplete Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Email Address'), 'email', 2, 2],
     [ts('Phone'), 'phone', 3, 3],
     [ts('Street Address'), 'street_address', 4, 4],
index 2dca5718cbb9cca2c06c9f81269de787ea212bc6..59806a393ab256d60a895e2fdf47eb373a1ed669 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_smart_group_display', 'a/00
     'title' => ts('Contact Smart Group View Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Show Smart Groups on Demand'), 'showondemand', 1],
     [ts('Always Show Smart Groups'), 'alwaysshow', 2],
     [ts('Hide Smart Groups'), 'hide', 3],
index 2e55bae7f434a8a30ef05de3336e88fb0404b80d..2d0a9b333b35163ee256a9dc1511519ec1e3fb7b 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contact_view_options', 'a/0016')
     'title' => ts('Contact View Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
 
     // NOTE: The original SQL had this inaccurate comment. It is unclear if the comment is inaccurate
     // because the situation changed for the better or the worse.
index 350e820e476cead1229925d8f834db319e4d2fb3..e169ac1182b5fd4207665f00c8496ab631a9156b 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contribution_recur_status', 'a/0080
     'title' => ts('Recurring Contribution Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Completed'), 'Completed', 1],
     [ts('Pending'), 'Pending', 2],
     [ts('Cancelled'), 'Cancelled', 3],
index 66992800e192a770333103347f6e6d8b37b6ff3f..7a2547f0a5fc167d2f408c46c54f9c23d39fad76 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('contribution_status', 'a/0011')
     'title' => ts('Contribution Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Completed'), 'Completed', 1, 1, 'is_reserved' => 1],
     [ts('Pending'), 'Pending', 2, 2, 'is_reserved' => 1],
     [ts('Cancelled'), 'Cancelled', 3, 3, 'is_reserved' => 1],
index d8f4caa646bc29f18b0481c091adb9048436d732..1266d455025b78d767f5b68ff8708b7a99dba5fb 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('currencies_enabled', 'a/0048')
   ->addMetadata([
     'title' => ts('Currencies Enabled'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['USD ($)', 'USD', 'USD', 'is_default' => 1],
     ['CAD ($)', 'CAD', 'CAD'],
     ['EUR (€)', 'EUR', 'EUR'],
index 0417500343cd118103159fceb140a7b39425e642..1103cdd91f3cf417ecd74a98b530b374bd9564e9 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('custom_data_type', 'a/0034')
   ->addMetadata([
     'title' => ts('Custom Data Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Participants (Role)'), 'ParticipantRole', 1, 'grouping' => 'role_id'],
     [ts('Participants (Event Name)'), 'ParticipantEventName', 2, 'grouping' => 'event_id'],
     [ts('Participants (Event Type)'), 'ParticipantEventType', 3, 'grouping' => 'event_id.event_type_id'],
index 69c47264601d897d0751e9f40794422f4909ca64..0c4562fe1ff37b1fa4cbcef3eb2f84fe454f6342 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('custom_search', 'a/0023')
   ->addMetadata([
     'title' => ts('Custom Search'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
     ['CRM_Contact_Form_Search_Custom_Sample', 'CRM_Contact_Form_Search_Custom_Sample', 1, 1, ts('Household Name and State')],
     ['CRM_Contact_Form_Search_Custom_ContributionAggregate', 'CRM_Contact_Form_Search_Custom_ContributionAggregate', 2, 2, ts('Contribution Aggregate')],
     ['CRM_Contact_Form_Search_Custom_Group', 'CRM_Contact_Form_Search_Custom_Group', 4, 4, ts('Include / Exclude Search')],
index 735d929c8e9be927900b9139afa9a2b2172e4373..299cc39a412d1b8fd21fa3186fed371c57515b18 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('email_greeting', 'a/0040')
   ->addMetadata([
     'title' => ts('Email Greeting Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Dear {contact.first_name}', 'Dear {contact.first_name}', 1, 'filter' => 1, 'is_default' => 1],
     ['Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 2, 'filter' => 1],
     ['Dear {contact.prefix_id:label} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.last_name}', 3, 'filter' => 1],
index 2cdf5b68817fd8d428609832d8aa3134e59a047a..45ccf450c2e3f2edc3de7fc03776575922886afe 100644 (file)
@@ -7,7 +7,7 @@ return CRM_Core_CodeGen_OptionGroup::create('encounter_medium', 'b/97')
     'title' => 'Encounter Medium',
     'description' => 'Encounter medium for case activities (e.g. In Person, By Phone, etc.)',
   ])
-  ->addValues(['label', 'name'], [
+  ->addValueTable(['label', 'name'], [
     [ts('In Person'), 'in_person'],
     [ts('Phone'), 'phone', 'is_default' => 1],
     [ts('Email'), 'email'],
index 4f5c5bd36acc6b938a5689c49846f051db8d4a6d..617b04dffbe08f0418aab35d325b41bcb2cf23b1 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('engagement_index', 'a/0055')
   ->addMetadata([
     'title' => ts('Engagement Index'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('1'), 1, 1],
     [ts('2'), 2, 2],
     [ts('3'), 3, 3],
index bfed5b7850f7d658958f640d67de003105cf9441..55762609e66de9538b3ccf8f579f8d37fe006eba 100644 (file)
@@ -3,6 +3,6 @@ return CRM_Core_CodeGen_OptionGroup::create('entity_batch_extends', 'a/0083')
   ->addMetadata([
     'title' => ts('Entity Batch Extends'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Financial Transactions'), 'civicrm_financial_trxn', 'civicrm_financial_trxn', 'is_default' => 1, 'component_id' => 2],
   ]);
index 89d694ef29c3b3b59156128bba3512c43212f03e..97f5924426fa748f58a5fffaa1a8f25e091b6a2d 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('environment', 'a/0081')
   ->addMetadata([
     'title' => ts('Environment'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     [ts('Production'), 'Production', 'Production', ts('Production Environment'), 'is_default' => 1],
     [ts('Staging'), 'Staging', 'Staging', ts('Staging Environment')],
     [ts('Development'), 'Development', 'Development', ts('Development Environment')],
index d9bd482b37134b916561dfbc2a46d3b10a64b10b..48112c145a8f34007143b54b6a546a7c6397cc74 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('event_badge', 'a/0049')
   ->addMetadata([
     'title' => ts('Event Name Badge'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     [ts('Name Only'), 'CRM_Event_Badge_Simple', 1, ts('Simple Event Name Badge'), 'is_reserved' => 1],
     [ts('Name Tent'), 'CRM_Event_Badge_NameTent', 2, ts('Name Tent'), 'is_reserved' => 1],
     [ts('With Logo'), 'CRM_Event_Badge_Logo', 3, ts('You can set your own background image'), 'is_reserved' => 1],
index 1671b398ba571f3c8a73eec3598d0ba00b4edad0..db40a2f9d4898f5ade5dedc89af3893fa57f3928 100644 (file)
@@ -3,6 +3,6 @@ return CRM_Core_CodeGen_OptionGroup::create('event_contacts', 'a/0062')
   ->addMetadata([
     'title' => ts('Event Recipients'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Participant Role'), 'participant_role', 1],
   ]);
index 5d105ac5257610fe6f96dee800e9db0edaf29652..71bc521a39b3652000a0cabc57b4973b55f82a15 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('event_type', 'a/0015')
     'description' => ts('Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.'),
     'data_type' => 'Integer',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Conference'), 'Conference', 1],
     [ts('Exhibition'), 'Exhibition', 2],
     [ts('Fundraiser'), 'Fundraiser', 3],
index abbff8a415ed8d976b8d11cd41728a4ad22ffc48..5e36e6a4b432610611a0db4bf88422afe9f5750d 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('financial_account_type', 'a/0070')
   ->addMetadata([
     'title' => ts('Financial Account Type'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     [ts('Asset'), 'Asset', 1, ts('Things you own'), 'is_reserved' => 1, 'component_id' => 2],
     [ts('Liability'), 'Liability', 2, ts('Things you owe, like a grant still to be disbursed'), 'is_reserved' => 1, 'component_id' => 2],
     [ts('Revenue'), 'Revenue', 3, ts('Income from contributions and sales of tickets and memberships'), 'is_default' => 1, 'is_reserved' => 1, 'component_id' => 2],
index 585997bcc6ac180dcd401689a7d99be6c5ac79d4..387900e3455a3292bf376f429d0ca1d6cc74cdd7 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('financial_item_status', 'a/0071')
     'title' => ts('Financial Item Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
     // TODO: Shouldn't we have ts() for these descriptions?
     [ts('Paid'), 'Paid', 1, 1, 'Paid', 'is_reserved' => 1, 'component_id' => 2],
     [ts('Unpaid'), 'Unpaid', 3, 1, 'Unpaid', 'is_reserved' => 1, 'component_id' => 2],
index 380a8c6aaa6ddfe8be88c84b41ea111ad91458a3..28be1a8f36db2ed5b84f5a6473f92772361bd997 100644 (file)
@@ -4,6 +4,6 @@ return CRM_Core_CodeGen_OptionGroup::create('from_email_address', 'a/0029')
     'title' => ts('From Email Address'),
     'description' => ts('By default, CiviCRM uses the primary email address of the logged in user as the FROM address when sending emails to contacts. However, you can use this page to define one or more general Email Addresses that can be selected as an alternative. EXAMPLE: "Client Services" <clientservices@example.org>.'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     ['"FIXME" <info@EXAMPLE.ORG>', '"FIXME" <info@EXAMPLE.ORG>', 1, ts('Default domain email address and from name.'), 'is_default' => 1, 'domain_id' => new CRM_Utils_SQL_Literal('@domainID')],
   ]);
index ca07e6a778a67a7e86c9a1bd65d1ab79f7dfeac7..ec2456ed89aadc9af080bc6e7e11a3c9f2a4d693 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('gender', 'a/0003')
     'description' => ts('CiviCRM is pre-configured with standard options for individual gender (Male, Female, Other). Modify these options as needed for your installation.'),
     'data_type' => 'Integer',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Female'), 'Female', 1],
     [ts('Male'), 'Male', 2],
     [ts('Other'), 'Other', 3],
index fb67a909f446431b1679e0c9c754b4daea765042..427d7aa5b23a9644f296ed9296c311c6a37ed1f8 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('group_type', 'a/0022')
   ->addMetadata([
     'title' => ts('Group Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Access Control'), 'Access Control', 1, 'is_reserved' => 1],
     [ts('Mailing List'), 'Mailing List', 2, 'is_reserved' => 1],
   ]);
index 857054c4beaef05792afde1f0e7b62e4a3eb3233..492db508c6d89c6452217406ec191bd022fb6097 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('individual_prefix', 'a/0006')
     'title' => ts('Individual contact prefixes'),
     'description' => ts('CiviCRM is pre-configured with standard options for individual contact prefixes (Ms., Mr., Dr. etc.). Customize these options and add new ones as needed for your installation.'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Mrs.'), 'Mrs.', 1],
     [ts('Ms.'), 'Ms.', 2],
     [ts('Mr.'), 'Mr.', 3],
index 916c194433a7bab9ab10ced53367beae623fbad9..6ff347dc137f4fbeba0b11afa3ef2150bf29dd62 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('individual_suffix', 'a/0007')
     'title' => ts('Individual contact suffixes'),
     'description' => ts('CiviCRM is pre-configured with standard options for individual contact name suffixes (Jr., Sr., II etc.). Customize these options and add new ones as needed for your installation.'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Jr.'), 'Jr.', 1],
     [ts('Sr.'), 'Sr.', 2],
     ['II', 'II', 3],
index ded0d7b0b806b9dd6e6bd999c0944390b246aa40..676c75006ccb92b9ed65fab53fac80762ecc486d 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('instant_messenger_service', 'a/0004
     'title' => ts('Instant Messenger (IM) screen-names'),
     'description' => ts('Commonly-used messaging apps are listed here. Administrators may define as many additional providers as needed.'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Yahoo', 'Yahoo', 1],
     ['MSN', 'Msn', 2],
     ['AIM', 'Aim', 3],
index 75922aed13e15b69822091f28f53766cc90457ff..d1f8c7fb67f25e4520e9269e8ced19c8ae777b37 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('label_format', 'a/0059')
   ->addMetadata([
     'title' => ts('Mailing Label Format'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Avery 3475'), 3475, '{"paper-size":"a4","orientation":"portrait","font-name":"dejavusans","font-size":10,"font-style":"","metric":"mm","lMargin":0,"tMargin":5,"NX":3,"NY":8,"SpaceX":0,"SpaceY":0,"width":70,"height":36,"lPadding":5.08,"tPadding":5.08}', 'grouping' => 'Avery', 'is_reserved' => 1],
     [ts('Avery 5160'), 5160, '{"paper-size":"letter","orientation":"portrait","font-name":"dejavusans","font-size":8,"font-style":"","metric":"in","lMargin":0.21975,"tMargin":0.5,"NX":3,"NY":10,"SpaceX":0.14,"SpaceY":0,"width":2.5935,"height":1,"lPadding":0.20,"tPadding":0.20}', 'grouping' => 'Avery', 'is_reserved' => 1],
     [ts('Avery 5161'), 5161, '{"paper-size":"letter","orientation":"portrait","font-name":"dejavusans","font-size":8,"font-style":"","metric":"in","lMargin":0.175,"tMargin":0.5,"NX":2,"NY":10,"SpaceX":0.15625,"SpaceY":0,"width":4,"height":1,"lPadding":0.20,"tPadding":0.20}', 'grouping' => 'Avery', 'is_reserved' => 1],
index 7ede3ba7230c4df595821a76d4ec62dcf41ab6a1..4d252087d5856d012440bb887b0a6cec8736ba02 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('label_type', 'a/0072')
   ->addMetadata([
     'title' => ts('Label Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Event Badge'), 'Event Badge', 1],
   ])
   ->addDefaults([
index 2f133240335bc17eb078df6a3b043f5200fb2ab2..1b6ff70fea196061a4f16928734f8e7324b9780f 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('mail_approval_status', 'a/0054')
   ->addMetadata([
     'title' => ts('CiviMail Approval Status'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Approved'), 'Approved', 1, 'is_default' => 1, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
     [ts('Rejected'), 'Rejected', 2, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
     [ts('None'), 'None', 3, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
index 71b58f1db7cdc120db5321f23384197fb7dd3992..5bcd96f131a2dd56d0a7ce93b8f9882d4ea5866d 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('mail_protocol', 'a/0036')
   ->addMetadata([
     'title' => ts('Mail Protocol'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['IMAP', 'IMAP', 1],
     ['Maildir', 'Maildir', 2],
     ['POP3', 'POP3', 3],
index 035936fb14ba665fd20d82b48c207dff79b9e74d..68614993aaa1d6975f3ce412c3757ec2b1f59fd7 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('mapping_type', 'a/0030')
     'title' => ts('Mapping Type'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Search Builder'), 'Search Builder', 1, 1, 'is_reserved' => 1],
     [ts('Import Contact'), 'Import Contact', 2, 2, 'is_reserved' => 1],
     [ts('Import Activity'), 'Import Activity', 3, 3, 'is_reserved' => 1],
index 953bfbe97e4ea39e4f42c76918041f8c0d63da1e..541553586844c613dbdf6537fb98e3be8890d725 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('mobile_provider', 'a/0005')
     'title' => ts('Mobile Phone Providers'),
     'description' => ts('When recording mobile phone numbers for contacts, it may be useful to include the Mobile Phone Service Provider (e.g. Cingular, Sprint, etc.). CiviCRM is installed with the most commonly encountered service providers. Administrators may define as many additional providers as needed.'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Sprint', 'Sprint', 1],
     ['Verizon', 'Verizon', 2],
     ['Cingular', 'Cingular', 3],
index 1b9ebcf77305605b1ce5763b8a28cfb3a7d281c9..f302cb365309d2b28b7f5379ad87511047dfa219 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('msg_mode', 'a/0075')
   ->addMetadata([
     'title' => ts('Message Mode'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Email'), 'Email', 'Email', 'is_default' => 1, 'is_reserved' => 1],
     [ts('SMS'), 'SMS', 'SMS', 'is_reserved' => 1],
     [ts('User Preference'), 'User Preference', 'User_Preference', 'is_reserved' => 1],
index a1abcdbf544945a4bd43ce2903daa8e8926da397..2c92b8c681ebe7b3bc897dae6cca1895a24eca4a 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('name_badge', 'a/0073')
   ->addMetadata([
     'title' => ts('Name Badge Format'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Avery 5395'), 'Avery 5395', '{"name":"Avery 5395","paper-size":"a4","metric":"mm","lMargin":15,"tMargin":26,"NX":2,"NY":4,"SpaceX":10,"SpaceY":5,"width":83,"height":57,"font-size":12,"orientation":"portrait","font-name":"helvetica","font-style":"","lPadding":3,"tPadding":3}'],
     [ts('A6 Badge Portrait 150x106'), 'A6 Badge Portrait 150x106', '{"paper-size":"a4","orientation":"landscape","font-name":"times","font-size":6,"font-style":"","NX":2,"NY":1,"metric":"mm","lMargin":25,"tMargin":27,"SpaceX":0,"SpaceY":35,"width":106,"height":150,"lPadding":5,"tPadding":5}'],
     [ts('Fattorini Name Badge 100x65'), 'Fattorini Name Badge 100x65', '{"paper-size":"a4","orientation":"portrait","font-name":"times","font-size":6,"font-style":"","NX":2,"NY":4,"metric":"mm","lMargin":6,"tMargin":19,"SpaceX":0,"SpaceY":0,"width":100,"height":65,"lPadding":0,"tPadding":0}'],
index 82c1ae75d5fd7deb674b21b1e7a56425c18ac3c2..2588f68e43f372e06162a6d9f4c0da36333d73e4 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('note_privacy', 'a/0050')
   ->addMetadata([
     'title' => ts('Privacy levels for notes'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('None'), 'None', 0, 'is_default' => 1, 'is_reserved' => 1],
     [ts('Author Only'), 'Author Only', 1, 'is_reserved' => 1],
   ]);
index 880a23096767290072f3c67599d7904aa7935dba..a3ed714dccad68547279857c50427e504c9861af 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('note_used_for', 'a/0047')
     'title' => ts('Note Used For'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Contacts'), 'Contact', 'civicrm_contact'],
     [ts('Relationships'), 'Relationship', 'civicrm_relationship'],
     [ts('Participants'), 'Participant', 'civicrm_participant'],
index fd942ecb42da7ed4c04139277afb3397e0ade8ea..41ca44ad092f3c4f1afa159490f2aef7e34a27e6 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('paper_size', 'a/0057')
   ->addMetadata([
     'title' => ts('Paper Size'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Letter'), 'letter', '{"metric":"in","width":8.5,"height":11}', 'is_default' => 1],
     [ts('Legal'), 'legal', '{"metric":"in","width":8.5,"height":14}'],
     [ts('Ledger'), 'ledger', '{"metric":"in","width":17,"height":11}'],
index 1b546edb9bc6fadf0352a8da70614b82154bcea8..884e8bb3a6a43ee634d6cfbbd97c2945bb4aff6d 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('participant_listing', 'a/0027')
   ->addMetadata([
     'title' => ts('Participant Listing'),
   ])
-  ->addValues(['label', 'name', 'value', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'description'], [
     [ts('Name Only'), 'Name Only', 1, ts('CRM_Event_Page_ParticipantListing_Name'), 'is_reserved' => 1],
     [ts('Name and Email'), 'Name and Email', 2, ts('CRM_Event_Page_ParticipantListing_NameAndEmail'), 'is_reserved' => 1],
     [ts('Name, Status and Register Date'), 'Name, Status and Register Date', 3, ts('CRM_Event_Page_ParticipantListing_NameStatusAndDate'), 'is_reserved' => 1],
index a0ee672f3a8f521d925a93d692c4e7d634d4bbd0..a057a6d7fcada6b7858c8006a2a83d3d091be45e 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('participant_role', 'a/0014')
     'description' => ts('Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.'),
     'data_type' => 'Integer',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Attendee'), 'Attendee', 1, 'filter' => 1],
     [ts('Volunteer'), 'Volunteer', 2, 'filter' => 1],
     [ts('Host'), 'Host', 3, 'filter' => 1],
index 138a3c9f678144455ae3d6179c74d5a0ec27d117..90aec10c119fb310c61e1246a622bdd011af05ab 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('payment_instrument', 'a/0010')
     'description' => ts('You may choose to record the payment method used for each contribution and fee. Reserved payment methods are required - you may modify their labels but they can not be deleted (e.g. Check, Credit Card, Debit Card). If your site requires additional payment methods, you can add them here. You can associate each payment method with a Financial Account which specifies where the payment is going (e.g. a bank account for checks and cash).'),
     'data_type' => 'Integer',
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Credit Card'), 'Credit Card', 1, 'is_reserved' => 1],
     [ts('Debit Card'), 'Debit Card', 2, 'is_reserved' => 1],
     [ts('Cash'), 'Cash', 3],
index 8e046e8df0b8537c16b3e874bcb709064e2745a8..51e775a242ac95e37d2cf63c00ccdc909117432f 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('pcp_owner_notify', 'a/0013')
     'title' => ts('PCP owner notifications'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Owner chooses whether to receive notifications'), 'owner_chooses', 1, 'is_default' => 1, 'is_reserved' => 1],
     [ts('Notifications are sent to ALL owners'), 'all_owners', 2, 'is_reserved' => 1],
     [ts('Notifications are NOT available'), 'no_notifications', 3, 'is_reserved' => 1],
index ae0ffc8e89fed030739aabf39f4377b9b23f6608..d4987729c90939c9ad192460f5233a3636ced635 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('pcp_status', 'a/0012')
     'title' => ts('PCP Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Waiting Review'), 'Waiting Review', 1, 'is_reserved' => 1],
     [ts('Approved'), 'Approved', 2, 'is_reserved' => 1],
     [ts('Not Approved'), 'Not Approved', 3, 'is_reserved' => 1],
index c227f8ee975d63471fde19fd79876d59e9f0c786..6a8ea92b8ad3e50b7164bf4565db394dd7d6d5a8 100644 (file)
@@ -3,6 +3,6 @@ return CRM_Core_CodeGen_OptionGroup::create('pdf_format', 'a/0058')
   ->addMetadata([
     'title' => ts('PDF Page Format'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Invoice PDF Format'), 'default_invoice_pdf_format', '{"metric":"px","margin_top":10,"margin_bottom":0,"margin_left":65,"margin_right":0}', 'is_reserved' => 1],
   ]);
index 70518a2a685b8d486171779d6a0c425c953dd210..cfa0b66429fc92b851df32fa799d8201ce574275 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('phone_type', 'a/0033')
   ->addMetadata([
     'title' => ts('Phone Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Phone'), 'Phone', 1],
     [ts('Mobile'), 'Mobile', 2],
     [ts('Fax'), 'Fax', 3],
index 056490bb47ad3e003a8e470d19829decaaee380d..8944d56cace412ed46a5b5d6e3070c5c44da88a1 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('pledge_status', 'a/0079')
     'title' => ts('Pledge Status'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Completed'), 'Completed', 1, 'is_reserved' => 1],
     [ts('Pending'), 'Pending', 2, 'is_reserved' => 1],
     [ts('Cancelled'), 'Cancelled', 3, 'is_reserved' => 1],
index 70f53fd51f99505e11920de5870101c79bd04be6..a02604cb5c8bee579ecb678b71fc1231f10a29e0 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('postal_greeting', 'a/0041')
   ->addMetadata([
     'title' => ts('Postal Greeting Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Dear {contact.first_name}', 'Dear {contact.first_name}', 1, 'filter' => 1, 'is_default' => 1],
     ['Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 2, 'filter' => 1],
     ['Dear {contact.prefix_id:label} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.last_name}', 3, 'filter' => 1],
index 83971e053b3ee727f5676d8941da4c261845a6a1..fb2511ece90c126fa76b61d38c2f2bbe8f622329 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('preferred_communication_method', 'a
   ->addMetadata([
     'title' => ts('Preferred Communication Method'),
   ])
-  ->addValues(['label', 'name'], [
+  ->addValueTable(['label', 'name'], [
     [ts('Phone'), 'Phone'],
     [ts('Email'), 'Email'],
     [ts('Postal Mail'), 'Postal Mail'],
index b5cfdb1140cda8b3f0a042be14615bf73b5e08a9..3733464ad718b20f9035cacd1d642064d9166184 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('priority', 'a/0037')
   ->addMetadata([
     'title' => ts('Priority'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Urgent'), 'Urgent', 1],
     [ts('Normal'), 'Normal', 2],
     [ts('Low'), 'Low', 3],
index f699c002f4a5cb6c841811a40044affc3cb282fc..e20fc22cd00e4ae5efba3ece20b2237acbb4c53c 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('recent_items_providers', 'b/99')
   ->addMetadata([
     'title' => ts('Recent Items Providers'),
   ])
-  ->addValues(['label', 'value', 'name'], [
+  ->addValueTable(['label', 'value', 'name'], [
     [ts('Contacts'), 'Contact', 'Contact'],
     [ts('Relationships'), 'Relationship', 'Relationship'],
     [ts('Activities'), 'Activity', 'Activity'],
index 1f0ca9b05f807e25a66a171e52ec880260278dea..2df573dbb8828236b6f4eed53e7a0f9798e08771 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('recur_frequency_units', 'a/0032')
   ->addMetadata([
     'title' => ts('Recurring Frequency Units'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('day'), 'day', 'day', 'is_reserved' => 1],
     [ts('week'), 'week', 'week', 'is_reserved' => 1],
     [ts('month'), 'month', 'month', 'is_reserved' => 1],
index 205f833dcbc6d068d4f2b0dbaa7ddc18ee86c3c2..be2de65c0a6f3c7aadb1ad608b18576ed61aebb4 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('redaction_rule', 'a/0038')
   ->addMetadata([
     'title' => ts('Redaction Rule'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Vancouver', 'city_', 'city_', 'is_active' => 0],
     ['/(19|20)(\\d{2})-(\\d{1,2})-(\\d{1,2})/', 'date_', 'date_', 'filter' => 1, 'is_active' => 0],
   ]);
index 0f6c6ee8c88bbe4c48aa235d943cb4bbd49a385d..569d227f0dee273e6c4d4ea355aa54a776ac3f99 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('relative_date_filters', 'a/0078')
   ->addMetadata([
     'title' => ts('Relative Date Filters'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Today'), 'this.day', 'this.day'],
     [ts('This week'), 'this.week', 'this.week'],
     [ts('This calendar month'), 'this.month', 'this.month'],
index a638bed946d55217a96ade93e90d68e530ec9c8d..2b96a56a029fb6f7c747428f98402d267eddbe34 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('report_template', 'a/0039')
   ->addMetadata([
     'title' => ts('Report Template'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+  ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
     [ts('Constituent Report (Summary)'), 'CRM_Report_Form_Contact_Summary', 'contact/summary', 1, ts('Provides a list of address and telephone information for constituent records in your system.')],
     [ts('Constituent Report (Detail)'), 'CRM_Report_Form_Contact_Detail', 'contact/detail', 2, ts('Provides contact-related information on contributions, memberships, events and activities.')],
     [ts('Activity Details Report'), 'CRM_Report_Form_Activity', 'activity', 3, ts('Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)')],
index bf04c0e314570d961568724b8b9d28fea21e7403..01ebaa36890b90d6ce799b70caea6f5e35896d4b 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('safe_file_extension', 'a/0028')
   ->addMetadata([
     'title' => ts('Safe File Extension'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['jpg', 'jpg', 1],
     ['jpeg', 'jpeg', 2],
     ['png', 'png', 3],
index 7131c8a84f4dd5259b159e8076d2e156f39b5bb4..a0d0bb72465f75ab826c86e05324c4ceca1e524a 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('sms_api_type', 'a/0067')
   ->addMetadata([
     'title' => ts('Api Type'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['http', 'http', 1, 'is_reserved' => 1],
     ['xml', 'xml', 2, 'is_reserved' => 1],
     ['smtp', 'smtp', 3, 'is_reserved' => 1],
index b8f58af642544b549b488c433546743c6c502918..defdecf520db7881f39eed8c53339d71956406d0 100644 (file)
@@ -5,7 +5,7 @@ return CRM_Core_CodeGen_OptionGroup::create('soft_credit_type', 'b/98')
   ->addMetadata([
     'title' => ts('Soft Credit Types'),
   ])
-  ->addValues(['label', 'value', 'name'], [
+  ->addValueTable(['label', 'value', 'name'], [
     [ts('In Honor of'), 1, 'in_honor_of', 'is_reserved' => 1],
     [ts('In Memory of'), 2, 'in_memory_of', 'is_reserved' => 1],
     [ts('Solicited'), 3, 'solicited', 'is_reserved' => 1, 'is_default' => 1],
index 8d2e4c43f5815ed7583539dec7a34acb4a2f054a..815c3ebcd48aac9860cb524c8a67e5585f9bdccf 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('tag_used_for', 'a/0046')
     'title' => ts('Tag Used For'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Contacts'), 'Contact', 'civicrm_contact'],
     [ts('Activities'), 'Activity', 'civicrm_activity'],
     [ts('Cases'), 'Case', 'civicrm_case'],
index a90f64a07d780c0409bf6880399ec6a2c655a71b..955fef7d9582d5a917900910c8d4e513adc7dce1 100644 (file)
@@ -4,7 +4,7 @@ return CRM_Core_CodeGen_OptionGroup::create('user_dashboard_options', 'a/0020')
     'title' => ts('User Dashboard Options'),
     'is_locked' => 1,
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     [ts('Groups'), 'Groups', 1, 1],
     [ts('Contributions'), 'CiviContribute', 2, 2],
     [ts('Memberships'), 'CiviMember', 3, 3],
index 70880cee6309944d65f3107f669786eeba44df02..a2a98c28745f549f927f7e80fe1a1d43906589d2 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('visibility', 'a/0035')
   ->addMetadata([
     'title' => ts('Visibility'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     ['Public', 'public', 1],
     ['Admin', 'admin', 2],
   ]);
index 7bd1a0d02041afc42019ab604f23ab35b05d35f6..697963c1524f0b7fe04da2ce8dcec5ec6a64287d 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('website_type', 'a/0045')
   ->addMetadata([
     'title' => ts('Website Type'),
   ])
-  ->addValues(['label', 'name', 'value', 'weight'], [
+  ->addValueTable(['label', 'name', 'value', 'weight'], [
     ['Work', 'Work', 1, 1, 'is_default' => 1],
     ['Main', 'Main', 2, 2],
     ['Facebook', 'Facebook', 3, 3],
index ea356e186be2dff1df1b5a6c4a765d617748d08b..c319cebd5c773f004a8dfd4906df7c7652141702 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('wysiwyg_editor', 'a/0031')
   ->addMetadata([
     'title' => ts('WYSIWYG Editor'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Textarea'), 'Textarea', 1, 'is_reserved' => 1],
     [ts('CKEditor 4'), 'CKEditor', 2, 'is_reserved' => 1],
   ]);
index 0fcf34b0cf4b67eb7f970d9c48ab86c7f9504420..869dbd70bc4dd42e2a39e107f9c07447048946e3 100644 (file)
@@ -3,7 +3,7 @@ return CRM_Core_CodeGen_OptionGroup::create('wysiwyg_presets', 'a/0077')
   ->addMetadata([
     'title' => ts('WYSIWYG Editor Presets'),
   ])
-  ->addValues(['label', 'name', 'value'], [
+  ->addValueTable(['label', 'name', 'value'], [
     [ts('Default'), 'default', 1, 'is_default' => 1],
     [ts('CiviMail'), 'civimail', 2, 'component_id' => 4],
     [ts('CiviEvent'), 'civievent', 3, 'component_id' => 1],