Dan - I don't mind what the function is called. :-) I am trying to find a way for setting default values used in a script. A plugin script could set a bunch of variables as defaults, or set an array. Now the mechanism I was looking for will allow any of these settings to be overridden (not used) if it is already set. And it could be set in a config file or in site.config.
The script I propose will do just that: it will load the values from different sources into the variable. In a way it does what BOLTconfig does, but more, as it also checks if a value is set in a config file, and it sets the variable directly, even as an array, and does not kill any key => values not set in a config file or site.config. As for variables which should not be set in site.config: The function checks first if the var is set in a config file. If it is, a setting of it in site.config is ignored. The file has priority over site.config, which has priority over the default supplied to the function (the value set in the plugin as default). I don't see anything backward in this approach. cheers Hans --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
