<?php
-// Adds option group for SearchDisplay.type
+use CRM_Search_ExtensionUtil as E;
+// Adds option group for SearchDisplay.type
return [
[
'name' => 'SearchDisplayType',
'values' => [
'name' => 'search_display_type',
'title' => 'Search Display Type',
- 'description' => NULL,
- 'data_type' => NULL,
'is_reserved' => TRUE,
'is_active' => TRUE,
- 'is_locked' => FALSE,
'option_value_fields' => [
'name',
'label',
'option_group_id.name' => 'search_display_type',
'value' => 'table',
'name' => 'crm-search-display-table',
- 'label' => 'Table',
+ 'label' => E::ts('Table'),
'icon' => 'fa-table',
- 'grouping' => NULL,
- 'filter' => 0,
- 'is_default' => FALSE,
- 'description' => NULL,
- 'is_optgroup' => FALSE,
- 'is_reserved' => FALSE,
+ 'is_reserved' => TRUE,
'is_active' => TRUE,
- 'color' => NULL,
- 'component_id' => NULL,
'domain_id' => NULL,
- 'visibility_id' => NULL,
],
'match' => ['option_group_id', 'name'],
],
'option_group_id.name' => 'search_display_type',
'value' => 'list',
'name' => 'crm-search-display-list',
- 'label' => 'List',
+ 'label' => E::ts('List'),
'icon' => 'fa-list',
- 'grouping' => NULL,
- 'filter' => 0,
- 'is_default' => FALSE,
- 'description' => NULL,
- 'is_optgroup' => FALSE,
- 'is_reserved' => FALSE,
+ 'is_reserved' => TRUE,
'is_active' => TRUE,
- 'color' => NULL,
- 'component_id' => NULL,
'domain_id' => NULL,
- 'visibility_id' => NULL,
],
'match' => ['option_group_id', 'name'],
],
'option_group_id.name' => 'search_display_type',
'value' => 'grid',
'name' => 'crm-search-display-grid',
- 'label' => 'Grid',
+ 'label' => E::ts('Grid'),
'icon' => 'fa-th',
- 'grouping' => NULL,
- 'filter' => 0,
- 'is_default' => FALSE,
- 'description' => NULL,
- 'is_optgroup' => FALSE,
- 'is_reserved' => FALSE,
+ 'is_reserved' => TRUE,
'is_active' => TRUE,
- 'color' => NULL,
- 'component_id' => NULL,
'domain_id' => NULL,
- 'visibility_id' => NULL,
],
'match' => ['option_group_id', 'name'],
],
<?php
-
use CRM_Search_ExtensionUtil as E;
// Adds option value to `tag_used_for`, allowing Saved Searches to be tagged
'value' => 'civicrm_saved_search',
'name' => 'SavedSearch',
'label' => E::ts('Saved Searches'),
- 'grouping' => NULL,
- 'filter' => 0,
- 'is_default' => FALSE,
- 'description' => NULL,
- 'is_optgroup' => FALSE,
'is_reserved' => FALSE,
'is_active' => TRUE,
- 'component_id' => NULL,
'domain_id' => NULL,
- 'visibility_id' => NULL,
- 'icon' => NULL,
- 'color' => NULL,
],
'match' => ['option_group_id', 'name'],
],