Robert.Moser@med.va.gov
2003-12-03, 17:44
> It occurs to me that we could use a configuration interface
> for plugins, so
Actually, we already have one, just not a particularly well-documented one.
All you have to do is have a setupGroup function in your plugin which
returns two hash refs, one for the group parameters and one for the
preference parameters. The Buttons::Plugins.pm module calls any such
function which exists for each plugin which is loaded. Those refs are then
passed to the addGroup function in Web::Setup.pm and added to the plugins
page under additional server settings.
See the comments at the top of the Setup module for information on the
parameters for the group and preferences.
> for plugins, so
Actually, we already have one, just not a particularly well-documented one.
All you have to do is have a setupGroup function in your plugin which
returns two hash refs, one for the group parameters and one for the
preference parameters. The Buttons::Plugins.pm module calls any such
function which exists for each plugin which is loaded. Those refs are then
passed to the addGroup function in Web::Setup.pm and added to the plugins
page under additional server settings.
See the comments at the top of the Setup module for information on the
parameters for the group and preferences.