Skip to content

Commit

Permalink
Add hook update to enable ddw
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Apr 18, 2024
1 parent 5b6a7b1 commit 9ffcf21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/metastore/metastore.install
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,15 @@ function metastore_update_8009() {
$dict->save();
$count++;
}
return t("Updated $count dictionaries. If you have overridden DKAN's core schemas,
return t("Updated $count dictionaries. If you have overridden DKAN's core schemas,
you must update your site's data dictionary schema after this update. Copy
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 9ffcf21

Please sign in to comment.