Ahhh, just when I thought I understood hooks, I don't.
I am trying to trap the event where the admin validates a link (not rejects) and extract the link id of the newly validated link:
Using: 'validate_link', 'POST'
my (@args) = @_;
blah???
return @args;
There is no dispatch reference in tools.pm (like GT::Plugins->dispatch ( $CFG->{admin_root_path} . '/Plugins', 'add_link', sub { return $self->_plg_add (@_); }, $p ); )
so firstly, how do I know what is dispatched to @args? I assume this is everything that is included in the return statement for the sub (in this case _validate).
Secondly, I can't remember how to print out the contents of @args when I have no idea what is in it. other than a hash.
In this case I want the link id.
References:
{
'subroutine' => 'Links::Tools::_validate',
'filename' => 'Links/Tools.pm',
'hook_name' => 'validate_link',
'input_params' => [
'HASH'
],
'description' => '',
'output_params' => [],
'line' => '415',
'path' => './Plugins'
}Confused
http://www.iuni.com/...tware/web/index.html
Links Plugins
I am trying to trap the event where the admin validates a link (not rejects) and extract the link id of the newly validated link:
Using: 'validate_link', 'POST'
my (@args) = @_;
blah???
return @args;
There is no dispatch reference in tools.pm (like GT::Plugins->dispatch ( $CFG->{admin_root_path} . '/Plugins', 'add_link', sub { return $self->_plg_add (@_); }, $p ); )
so firstly, how do I know what is dispatched to @args? I assume this is everything that is included in the return statement for the sub (in this case _validate).
Secondly, I can't remember how to print out the contents of @args when I have no idea what is in it. other than a hash.
In this case I want the link id.
References:
Code:
'validate_link' => [ {
'subroutine' => 'Links::Tools::_validate',
'filename' => 'Links/Tools.pm',
'hook_name' => 'validate_link',
'input_params' => [
'HASH'
],
'description' => '',
'output_params' => [],
'line' => '415',
'path' => './Plugins'
}

http://www.iuni.com/...tware/web/index.html
Links Plugins