View | Details | Raw Unified | Return to bug 32986
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Notices.pm (-1 / +33 lines)
Lines 26-31 use C4::Koha; Link Here
26
use C4::Context;
26
use C4::Context;
27
use Koha::Notice::Templates;
27
use Koha::Notice::Templates;
28
28
29
=head1 NAME
30
31
Koha::Template::Plugin::Notices
32
33
=head1 DESCRIPTION
34
35
The Asset plugin is a helper that gets notice template objects
36
accepting an optional module parameter
37
38
=head1 SYNOPSIS
39
40
    [% USE Notices %]
41
42
    [% SET notices = Notices.GetTemplates( 'patron_slip' ) %]
43
    [% FOREACH notice IN notices %]
44
    ...
45
    [% END %]
46
47
=cut
48
49
=head1 API
50
51
=head2 Class Methods
52
53
=cut
54
55
=head3 GetTemplates
56
57
This routine searches the Koha::Notice::Template objects with passed module
58
parameter
59
60
=cut
61
29
sub GetTemplates {
62
sub GetTemplates {
30
    my ( $self, $module ) = @_;
63
    my ( $self, $module ) = @_;
31
    my $params = {};
64
    my $params = {};
32
- 

Return to bug 32986