Installation¶
Requirements¶
- Drupal 10.4 or 11
league/commonmark^2.8, installed by Composer automatically
The module depends only on core's field module.
Installing¶
composer require drupal/ai_disclosure
drush en ai_disclosure
Installing the module creates the nine grades, the module
settings, and the suggestion table. The compliance report
view installs with the node and views core modules; enable them before or
after this module, the view follows either way. Its
CSV export is a separate submodule,
ai_disclosure_csv_export, which needs rest and serialization: enable it
too if the export command should show.
After installing, start at /admin/config/content/ai-disclosure: set the
site policy, create profiles, and add
the field to the bundles that need it.
Uninstalling¶
The module does not uninstall while the ai_disclosure field is on a bundle.
The guard is core's: uninstalling would drop every stored disclosure.
The Fields tab has a Remove from every bundle
action that takes the field off every bundle of every entity type in one
confirmed step. The confirmation names each bundle, and the stored values are
deleted with it, none suppressions included.
Removing the field is not the whole job. Core counts a field storage as in use until its data has been purged, so the uninstall page keeps blocking, now with "Fields pending deletion". The action purges what a single pass can take. On a site with much content the rest is purged on the next cron run, and the uninstall page names whichever of the two states you are in.