-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NFC] Convert some fields on admin display preferences to use metdata #12906
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c5af824
Convert 'Viewing Smart Groups' on admin display preferences to use me…
eileenmcnaughton 1ca4613
Convert 'Viewing Smart Groups' on admin display preferences to use me…
eileenmcnaughton 629c851
Add metadata for editing contacts
eileenmcnaughton 2e94f47
Convert Contact Search to metadata driven
eileenmcnaughton c89a43b
Convert Preserve activity tab
eileenmcnaughton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,14 +67,16 @@ | |
), | ||
'default' => '123456789111214151617', | ||
'add' => '4.1', | ||
'title' => 'Editing Contacts', | ||
'title' => ts('Editing Contacts'), | ||
'is_domain' => 1, | ||
'is_contact' => 0, | ||
'description' => NULL, | ||
'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( | ||
'group_name' => 'CiviCRM Preferences', | ||
'group' => 'core', | ||
'name' => 'advanced_search_options', | ||
'type' => 'String', | ||
'html_type' => 'checkboxes', | ||
|
@@ -83,11 +85,11 @@ | |
), | ||
'default' => '123456789101112131516171819', | ||
'add' => '4.1', | ||
'title' => 'Contact Search', | ||
'title' => ts('Contact Search'), | ||
'is_domain' => 1, | ||
'is_contact' => 0, | ||
'description' => NULL, | ||
'help_text' => NULL, | ||
'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( | ||
'group_name' => 'CiviCRM Preferences', | ||
|
@@ -324,8 +326,11 @@ | |
'title' => ts('Viewing Smart Groups'), | ||
'is_domain' => 1, | ||
'is_contact' => 0, | ||
'description' => NULL, | ||
'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( | ||
'optionGroupName' => 'contact_smart_group_display', | ||
), | ||
), | ||
'smart_group_cache_refresh_mode' => array( | ||
'group_name' => 'CiviCRM Preferences', | ||
|
@@ -961,28 +966,28 @@ | |
'group' => 'core', | ||
'name' => 'syncCMSEmail', | ||
'type' => 'Boolean', | ||
'html_type' => 'YesNo', | ||
'quick_form_type' => 'YesNo', | ||
'default' => 1, | ||
'add' => '4.7', | ||
'title' => 'Sync CMS Email', | ||
'title' => ts('Sync CMS Email'), | ||
'is_domain' => 1, | ||
'is_contact' => 0, | ||
'description' => 'If enabled, then CMS email id will be syncronised with CiviCRM contacts\'s primary email.', | ||
'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( | ||
'group_name' => 'CiviCRM Preferences', | ||
'group' => 'core', | ||
'name' => 'preserve_activity_tab_filter', | ||
'type' => 'String', | ||
'html_type' => 'Text', | ||
'type' => 'Boolean', | ||
'html_type' => 'checkbox', | ||
'default' => '0', | ||
'add' => '4.7', | ||
'title' => 'Preserve activity filters as a user preference', | ||
'title' => ts('Preserve activity filters as a user preference'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Title markup entries should probably end with a full stop like most of the description entries do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as discussed - leaving full stops off the titles |
||
'is_domain' => 1, | ||
'is_contact' => 0, | ||
'description' => 'When enabled, any filter settings a user selects on the contact\'s Activity tab will be remembered as they visit other contacts', | ||
'help_text' => NULL, | ||
'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( | ||
'group_name' => 'CiviCRM Preferences', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the preference for using $options instead of $options['values'] below, but functioncall()['arrayindex'] is messy. $options = $options['values'] would be preferable in my view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a big fan of that syntax though :-(