From 5df5b7061b1d9ee5d4ab9f947c28c6963c5b647f Mon Sep 17 00:00:00 2001 From: dannylamb Date: Mon, 5 Jul 2021 15:54:30 -0300 Subject: [PATCH] update hook --- .../islandora_core_feature.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/islandora_core_feature/islandora_core_feature.install b/modules/islandora_core_feature/islandora_core_feature.install index 3585dafa..a8e23d3c 100644 --- a/modules/islandora_core_feature/islandora_core_feature.install +++ b/modules/islandora_core_feature/islandora_core_feature.install @@ -135,3 +135,19 @@ function islandora_core_feature_update_8001(&$sandbox) { ]); } } + +/** + * Delete actions that have to do with Gemini. + */ +function islandora_core_feature_update_8002() { + $config_factory = \Drupal::configFactory(); + $action = $config_factory->getEditable('system.action.index_file_in_fedora'); + if ($action) { + $action->delete(); + } + + $action = $config_factory->getEditable('system.action.delete_file_from_fedora'); + if ($action) { + $action->delete(); + } +}