From c4b313b45914fd0a98dd23e485b778f092e9ba3b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 23 Nov 2009 06:37:01 +0000 Subject: Bug 523999: New Hook: template-before_create Patch by Max Kanat-Alexander (module owner) a=mkanat --- Bugzilla/Hook.pm | 19 ++++++++++++++ Bugzilla/Template.pm | 9 +++++-- extensions/example/code/template-before_create.pl | 30 +++++++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 extensions/example/code/template-before_create.pl 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's C) =back +=head2 template-before_create + +This hook allows you to modify the configuration of L +objects before they are created. For example, you could add a new +global template variable this way. + +Params: + +=over + +=item C + +A hashref--the configuration that will be passed to L