[wellwell-devel] [wellwell/zoom] Add plugin_disable function to WellWell::Plugin.

Stefan Hornburg wellwell-devel at rt.icdevgroup.org
Sun Oct 24 19:50:18 UTC 2010


commit a5213531248d610ec829b9ae054f84661e455119
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Sun Oct 24 14:56:39 2010 +0200

    Add plugin_disable function to WellWell::Plugin.

 lib/WellWell/Plugin.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/WellWell/Plugin.pm b/lib/WellWell/Plugin.pm
index 80cdcb5..7cdd5fd 100644
--- a/lib/WellWell/Plugin.pm
+++ b/lib/WellWell/Plugin.pm
@@ -88,6 +88,12 @@ sub plugin_enable {
 	$dbif->update('plugins', 'name = ' . $dbif->quote($plugin), active => 1);
 }
 
+sub plugin_disable {
+	my ($dbif, $plugin) = @_;
+
+	$dbif->update('plugins', 'name = ' . $dbif->quote($plugin), active => 0);
+}
+
 sub plugin_get_info {
 	my ($infofile) = @_;
 	my %info;



More information about the wellwell-devel mailing list