If you delete some settings the settings view throw errors. So you cannot reupload the old settings.
I think the core settings should be only editable. We could remove the delete button.
Otherwise we should provide a different view for uploading the old settings, probably on the import tools.
Hmm, good point. HOwever, there is no way right now to know which is a core setting or not unless we add a boolean bit. I am ok with adding one if needed.
what do you think?
I think we should add it.
Since it could BREAK if we do not.
Although we should try default the settings if possible (especially for upgrade paths - its painful if we "miss" something).
Obviously themes, modules etc, should default values that don't exist.
Add a boolean flag it's the best solution.
Bad solution is to count the core settings and check if it match in range. For example from 1 to 150 are core settings, we shoyld not show delete button and also add a check to remove handler.
Also we could declare setting that match "cb_" prefix are core settings...
What about an option to "restore defaults". That may not be viable though if a deleted setting can bring down the entire site though.