Hi:
Trying to write a plug-in for GTCom, and create my own hook, and I am not sure how. Hopefully someone will know!
OK, I want to replace sub insert in Community::Apps::Local::LinksSQL with my own code.
When I get to Add New Hook, what do I add?
Community::Apps::Local::LinksSQL
Community::Apps::Local::LinksSQL::
Community::Apps::Local::LinksSQL::insert
or none of these? Do I leave Code as-is (Plugins::Community::Update_Links::)?
Finally, for the plug-in code itself, do I run it as: sub { }, or do I rename it to sub insert { } for the sub I am replacing?
I have tried a few different versions of these, and so far, none work...
(Oh, and yes, I do have GT::Plugins->action ( STOP ); right in there to REPLACE the existing code...)
Thanks!
dave
Big Cartoon DataBase
Big Comic Book DataBase
Trying to write a plug-in for GTCom, and create my own hook, and I am not sure how. Hopefully someone will know!
OK, I want to replace sub insert in Community::Apps::Local::LinksSQL with my own code.
When I get to Add New Hook, what do I add?
Community::Apps::Local::LinksSQL
Community::Apps::Local::LinksSQL::
Community::Apps::Local::LinksSQL::insert
or none of these? Do I leave Code as-is (Plugins::Community::Update_Links::)?
Finally, for the plug-in code itself, do I run it as: sub { }, or do I rename it to sub insert { } for the sub I am replacing?
I have tried a few different versions of these, and so far, none work...
(Oh, and yes, I do have GT::Plugins->action ( STOP ); right in there to REPLACE the existing code...)
Thanks!
dave
Big Cartoon DataBase
Big Comic Book DataBase