Craig Andrews wrote:
With more (and important) functionality moving into plugins, there needs
to be a mechanism to have plugins enabled by default. Have you developed
something like that yet?
Yeah, I've been trying to work out how that would go.
My best idea so far is that there would be a configuration option
listing default plugins that will be turned on. Something like in
common.php:
$config['plugins']['default'] = array('OpenID', 'Jabber', 'SMS', 'Invite');
Then in your config.php you could get rid of ones you don't want:
unset(array_search('SMS', $config['plugins']['default']));
Then back in common.php we'd do something like:
foreach ($config['plugins']['default'] as $plugin) {
addPlugin($plugin);
}
It seems pretty OK, but a) it makes it tempting to /add/ plugins to that
list b) you can't provide parameters and c) that unset() syntax is
really squirrelly.
-Evan
--
Evan Prodromou
CEO, Control Yourself, Inc.
[email protected] - http://identi.ca/evan - +1-514-554-3826
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev