Search ext: Add searchDisplay and searchPage modules
[civicrm-core.git] / ext / search / search.civix.php
index 2a696e2cffa0848049994a544c3bcb8069308097..7ae23cc7de4f1d0330c86f1819f0db0bb4cd7cde 100644 (file)
@@ -7,9 +7,9 @@
  * extension.
  */
 class CRM_Search_ExtensionUtil {
-  const SHORT_NAME = "search";
-  const LONG_NAME = "org.civicrm.search";
-  const CLASS_PREFIX = "CRM_Search";
+  const SHORT_NAME = 'search';
+  const LONG_NAME = 'org.civicrm.search';
+  const CLASS_PREFIX = 'CRM_Search';
 
   /**
    * Translate a string using the extension's domain.
@@ -473,5 +473,11 @@ function _search_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
  * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
  */
 function _search_civix_civicrm_entityTypes(&$entityTypes) {
-  $entityTypes = array_merge($entityTypes, []);
+  $entityTypes = array_merge($entityTypes, [
+    'CRM_Search_DAO_SearchDisplay' => [
+      'name' => 'SearchDisplay',
+      'class' => 'CRM_Search_DAO_SearchDisplay',
+      'table' => 'civicrm_search_display',
+    ],
+  ]);
 }