Gossamer Forum
Home : Products : Gossamer Links : Discussions :

plugin capability to Table::Links::add_reviews needed

Quote Reply
plugin capability to Table::Links::add_reviews needed
I guess this would be for GT developers.

I've found reason to modify admin/Table/Links.pm on several occasions. Simply modify sub add_reviews {} so that I could plugin to that code. This seems like it might cause problems with your updater if I were to continue doing this manually.

I've been renaming: sub add_reviews to: sub _plg_add_reviews

then creating:
sub add_reviews {
# -------------------------------------------------------------------
my ($self, $link) = @_;
$PLG->dispatch('add_reviews', sub { return $self->_plg_add_reviews(@_) }, $link);
}

Can GT make the add_reviews subroutine pluginable from your end now, or is this something I need to continue doing manually, and will that cause problems with your updater if I do make manual changes to core scripts?

thanks and peace.

klangan
Quote Reply
Re: [klangan] plugin capability to Table::Links::add_reviews needed In reply to
The change should be available in the next release.

Adrian