NOW this is interesting!
It looks like this hook gets called 3 times!
[
'validate_review',
'POST',
'Plugins::RNotifier::add_review',
'1'
]
],I add this code in:
my @args = @_;
print $IN->header if $DEBUG > 0;
my $args = $IN->get_hash();
my @ids;
while (my ($key, $param) = each %$args) {
if ($key =~ /^(\d+)-ReviewID/) {
push @ids, $1;
}
}
#tools_validate_reviews.html
print "FOO: " . $IN->param('do') . "<br />";
..and it prints out the following:
FOO: page
FOO: page
Very weird! Gonna email GT, to see if this is a bug they have fixed up (or are unaware of)
Will let you know once I hear something back.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
It looks like this hook gets called 3 times!
Code:
'hooks' => [ [
'validate_review',
'POST',
'Plugins::RNotifier::add_review',
'1'
]
],
Code:
sub add_review { my @args = @_;
print $IN->header if $DEBUG > 0;
my $args = $IN->get_hash();
my @ids;
while (my ($key, $param) = each %$args) {
if ($key =~ /^(\d+)-ReviewID/) {
push @ids, $1;
}
}
#tools_validate_reviews.html
print "FOO: " . $IN->param('do') . "<br />";
..and it prints out the following:
Code:
FOO: page FOO: page
FOO: page
Very weird! Gonna email GT, to see if this is a bug they have fixed up (or are unaware of)
Will let you know once I hear something back.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!