backdrop-contrib / diff

Show differences between content revisions.
GNU General Public License v2.0
0 stars 5 forks source link

Storing config settings for each node type. #2

Closed Graham-72 closed 4 years ago

Graham-72 commented 8 years ago

Diff requires three settings for each node type and these are displayed and administered on the administration form for the content type under a new entry 'Content revisions'.

In porting this module from Drupal I have added these config settings to the json file for the node type in order that they are updated through the normal saving of the content type. Maybe they should instead be stored in diff.settings.json?

In order to initiate these three settings if they have not yet been set, I have added code to function diff_form_node_type_form_alter. Is this the right way to deal with this?

Graham-72 commented 4 years ago

PR #14 adds code to delete these settings if this module is uninstalled.