Skip to content

Commit

Permalink
Move the hook_update to dkan.install
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Apr 24, 2024
1 parent 9ffcf21 commit ca0ede8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion dkan.install
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@
function dkan_update_9001() {
$modules = ['path', 'config'];
\Drupal::service('module_installer')->install($modules);
}
}

/**
* Enable data dictionary widget.
*/
function dkan_update_9002() {
\Drupal::service('module_installer')->install(['data_dictionary_widget']);
}
7 changes: 0 additions & 7 deletions modules/metastore/metastore.install
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

0 comments on commit ca0ede8

Please sign in to comment.