diff options
author | mkanat%bugzilla.org <> | 2009-11-23 07:37:01 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-23 07:37:01 +0100 |
commit | c4b313b45914fd0a98dd23e485b778f092e9ba3b (patch) | |
tree | 8952393c8f57f424714d1d5a14ba10635b9e5131 /Bugzilla/Hook.pm | |
parent | eea9be3a4f613ba827d9f7f4a01611c1ae176306 (diff) | |
download | bugzilla-c4b313b45914fd0a98dd23e485b778f092e9ba3b.tar.gz bugzilla-c4b313b45914fd0a98dd23e485b778f092e9ba3b.tar.xz |
Bug 523999: New Hook: template-before_create
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r-- | Bugzilla/Hook.pm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index b922559b5..dc1cd6be1 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -786,6 +786,25 @@ to the user. (F<sanitycheck.cgi>'s C<Status>) =back +=head2 template-before_create + +This hook allows you to modify the configuration of L<Bugzilla::Template> +objects before they are created. For example, you could add a new +global template variable this way. + +Params: + +=over + +=item C<config> + +A hashref--the configuration that will be passed to L<Template/new>. +See L<http://template-toolkit.org/docs/modules/Template.html#section_CONFIGURATION_SUMMARY> +for information on how this configuration variable is structured (or just +look at the code for C<create> in L<Bugzilla::Template>.) + +=back + =head2 template-before_process This hook allows you to define additional variables that will be available to |