[wellwell-devel] [wellwell/zoom] Add plugins attribute to [call-hooks] in order to address specific plugins.

Stefan Hornburg wellwell-devel at rt.icdevgroup.org
Wed Sep 15 10:47:10 UTC 2010


commit feb5e036072dd5802bf8741c075dcce6e2b106ac
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Sat Sep 11 12:36:08 2010 +0200

    Add plugins attribute to [call-hooks] in order to address specific plugins.

 code/call_hooks.tag |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/code/call_hooks.tag b/code/call_hooks.tag
index 4ab7dc3..6d21847 100644
--- a/code/call_hooks.tag
+++ b/code/call_hooks.tag
@@ -5,7 +5,12 @@ sub {
 	my ($name, $mode, $opt) = @_;
 	my (@plugins, @ret);
 
-	@plugins = split(/,/, $Variable->{PLUGINS});
+	if ($opt->{plugins}) {
+		@plugins = split(/,/, $opt->{plugins});
+	}
+	else {
+		@plugins = split(/,/, $Variable->{PLUGINS});
+	}
 
 	for my $plugin (@plugins) {
 		if ($sub = $Config->{Sub}->{"${plugin}_$name"}) {



More information about the wellwell-devel mailing list