Hi,
I read this following information, which was provided by Alex:
-------
PRE hooks
They get passed in a single hash reference of all the template tags that would appear on that template. So for site_html_add_success template you would get a hash ref of the entire link that was just added. The plugin can alter that hash ref to add tags, or change values. So if your plugin wanted to add the word 'foo' to the Title when displaying a link that was just added, you would do:
sub add_foo {
my $link = shift;
$link->{Title} = $link->{Title} . 'foo';
return $link;
}
-------
How could I see to it that the 'foo' would also be added to their title so when I need to validate it, it would be in the format of "Titlefoo".
This would be a add_link POST hook, correct?
What would my subroutine look like to add the foo to their title so that it appears with the foo in the Validate table?
Thanks.
Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
I read this following information, which was provided by Alex:
-------
PRE hooks
They get passed in a single hash reference of all the template tags that would appear on that template. So for site_html_add_success template you would get a hash ref of the entire link that was just added. The plugin can alter that hash ref to add tags, or change values. So if your plugin wanted to add the word 'foo' to the Title when displaying a link that was just added, you would do:
sub add_foo {
my $link = shift;
$link->{Title} = $link->{Title} . 'foo';
return $link;
}
-------
How could I see to it that the 'foo' would also be added to their title so when I need to validate it, it would be in the format of "Titlefoo".
This would be a add_link POST hook, correct?
What would my subroutine look like to add the foo to their title so that it appears with the foo in the Validate table?
Thanks.
Robert Blackstone
Webmaster of Scato Search
http://www.scato.com