diff --git a/modules/opencase_reporting/config/install/search_api.server.opencase_reporting_server.yml b/modules/opencase_reporting/config/install/search_api.server.opencase_reporting_server.yml new file mode 100644 index 0000000..d7ec642 --- /dev/null +++ b/modules/opencase_reporting/config/install/search_api.server.opencase_reporting_server.yml @@ -0,0 +1,16 @@ +langcode: en +status: true +dependencies: + module: + - search_api_db +id: opencase_reporting_server +name: 'OpenCase Reporting' +description: '' +backend: search_api_db +backend_config: + database: 'default:default' + min_chars: 3 + partial_matches: false + autocomplete: + suggest_suffix: true + suggest_words: true diff --git a/modules/opencase_reporting/opencase_reporting.module b/modules/opencase_reporting/opencase_reporting.module new file mode 100644 index 0000000..b36cf7f --- /dev/null +++ b/modules/opencase_reporting/opencase_reporting.module @@ -0,0 +1,38 @@ +' . t('About') . ''; + $output .= '

' . t('Reporting functionality for OpenCase.') . '

'; + return $output; + + default: + } +} + +/** + * Implements hook_uninstall(). + * Removes configs. + */ +function opencase_reporting_uninstall() { + $configs = [ + 'search_api.server.opencase_reporting_server', + 'search_api.index.opencase_reporting_actors' + ]; + foreach($configs as $config) { + Drupal::configFactory()->getEditable($config)->delete(); + } +}