Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add plugins attribute to [call-hooks] in order to address specific pl…
…ugins.
  • Loading branch information
racke committed Sep 15, 2010
1 parent d38c137 commit feb5e03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/call_hooks.tag
Expand Up @@ -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"}) {
Expand Down

0 comments on commit feb5e03

Please sign in to comment.