From ca0ede8b8b0b1798458d9b064404a2bfa1ef6187 Mon Sep 17 00:00:00 2001 From: Janette Day Date: Wed, 24 Apr 2024 13:43:13 -0500 Subject: [PATCH] Move the hook_update to dkan.install --- dkan.install | 9 ++++++++- modules/metastore/metastore.install | 7 ------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dkan.install b/dkan.install index dc584e15e1..58e5714538 100644 --- a/dkan.install +++ b/dkan.install @@ -10,4 +10,11 @@ function dkan_update_9001() { $modules = ['path', 'config']; \Drupal::service('module_installer')->install($modules); -} \ No newline at end of file +} + +/** + * Enable data dictionary widget. + */ +function dkan_update_9002() { + \Drupal::service('module_installer')->install(['data_dictionary_widget']); +} diff --git a/modules/metastore/metastore.install b/modules/metastore/metastore.install index e6a2f86bd1..51b303daff 100644 --- a/modules/metastore/metastore.install +++ b/modules/metastore/metastore.install @@ -150,10 +150,3 @@ function metastore_update_8009() { modules/contrib/dkan/schema/collections/data-dictionary.json over you local site version before attempting to read or write any data dictionaries."); } - -/** - * Enable data dictionary widget. - */ -function metastore_update_8010() { - \Drupal::service('module_installer')->install(['data_dictionary_widget']); -}