2019-06-09 13:00:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function opencase_default_reporting_uninstall() {
|
|
|
|
$configs = [
|
2020-02-24 12:54:39 +00:00
|
|
|
'search_api.index.opencase_reporting_cases',
|
|
|
|
'search_api.index.opencase_reporting_clients',
|
|
|
|
'search_api.index.opencase_reporting_volunteers',
|
2019-06-09 13:00:23 +00:00
|
|
|
'block.block.facet_asylum_status',
|
|
|
|
'block.block.facet_created',
|
|
|
|
'block.block.facet_disability',
|
|
|
|
'block.block.facet_gender_identified_with',
|
|
|
|
'block.block.facet_languages',
|
|
|
|
'block.block.nationalities',
|
2019-07-15 17:36:53 +00:00
|
|
|
'block.block.osiclevel',
|
|
|
|
'block.block.outcome',
|
|
|
|
'block.block.involvedparties',
|
2019-06-09 13:00:23 +00:00
|
|
|
'views.view.reporting_clients',
|
|
|
|
'views.view.reporting_volunteers',
|
2019-07-15 17:36:53 +00:00
|
|
|
'views.view.reporting_cases',
|
2019-06-09 13:00:23 +00:00
|
|
|
'facets.facet.asylum_status_export',
|
|
|
|
'facets.facet.disability',
|
|
|
|
'facets.facet.nationalities_export',
|
|
|
|
'facets.facet.asylum_status',
|
|
|
|
'facets.facet.gender_identified_with_export',
|
|
|
|
'facets.facet.nationalities',
|
|
|
|
'facets.facet.created_export',
|
|
|
|
'facets.facet.gender_identified_with',
|
|
|
|
'facets.facet.osic_level_export',
|
|
|
|
'facets.facet.created',
|
|
|
|
'facets.facet.languages_export',
|
|
|
|
'facets.facet.osic_level',
|
|
|
|
'facets.facet.disability_export',
|
|
|
|
'facets.facet.languages',
|
2019-07-15 17:36:53 +00:00
|
|
|
'facets.facet.outcome',
|
|
|
|
'facets.facet.outcome_export',
|
|
|
|
'facets.facet.involved_parties',
|
|
|
|
'facets.facet.involved_parties_export',
|
2019-06-09 13:00:23 +00:00
|
|
|
];
|
|
|
|
foreach($configs as $config) {
|
|
|
|
Drupal::configFactory()->getEditable($config)->delete();
|
|
|
|
}
|
|
|
|
}
|