PDA

View Full Version : RE: Plugin config interface



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.

Roy M. Silvernail
2003-12-03, 18:52
On Wednesday 03 December 2003 19:44, Robert.Moser (AT) med (DOT) va.gov wrote:
> > 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.

D'oh! OK, back to my homework! Thanks for the pointer.