Hi,
This is a hook. Wherever you see GT::Plugins->dispatch, then the subroutine mentioned can be overridden (in this case add_link) by your own code.
You supply the PRE hook or POST hook code that gets run either before or after the add_link function.
The goal of this is not to modify the distributed CGI files.
So when you create a PRE hook in a file called YourHooks.pm in the Plugins directory, what happens is the program sees that you have a function registered as a PRE hook for user_add_link. It then runs your function first, and then depending on what your function does, runs the main code.
Cheers,
Alex
--
Gossamer Threads Inc.
This is a hook. Wherever you see GT::Plugins->dispatch, then the subroutine mentioned can be overridden (in this case add_link) by your own code.
You supply the PRE hook or POST hook code that gets run either before or after the add_link function.
The goal of this is not to modify the distributed CGI files.
So when you create a PRE hook in a file called YourHooks.pm in the Plugins directory, what happens is the program sees that you have a function registered as a PRE hook for user_add_link. It then runs your function first, and then depending on what your function does, runs the main code.
Cheers,
Alex
--
Gossamer Threads Inc.