Skip to content

Commit

Permalink
Add transform_prepared_letter hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall authored Dec 14, 2023
1 parent 38c783e commit 7368f8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,16 @@ sub background_tasks {
};
}

=head3 transform_prepared_letter
Plugin hook used to modify prepared slips and notices
=cut

sub transform_prepared_letter {
my ( $self, $params ) = @_;
my $linebreak = $params->{letter}->{is_html} ? '<p>' : "\n";
$params->{letter}->{content} .= $linebreak . "Thanks for using your local library!";
}

1;

0 comments on commit 7368f8b

Please sign in to comment.