Closed Bug 523999 Opened 16 years ago Closed 15 years ago

New Hook: template-before_create

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

(Whiteboard: [es-ita])

Attachments

(1 file)

Attached patch v1Splinter Review
This hook allows developers to change the configuration of the Bugzilla::Template object in a hook.
Attachment #407906 - Flags: review?(dkl)
Whiteboard: [es-ita]
Blocks: 525606
Is there a way to get the name of the current CGI or details about the current request? I can imagine that someone might only want to add expensively-computed stuff to the Template config in the circumstances where the template was going to need it... Gerv
(In reply to comment #1) > Is there a way to get the name of the current CGI or details about the current > request? I can imagine that someone might only want to add expensively-computed > stuff to the Template config in the circumstances where the template was going > to need it... That would be best done during template-before_process instead of in this hook.
Comment on attachment 407906 [details] [diff] [review] v1 Granting myself review as module owner.
Attachment #407906 - Flags: review?(dkl) → review+
Flags: approval+
Checking in Bugzilla/Hook.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Hook.pm,v <-- Hook.pm new revision: 1.40; previous revision: 1.39 done Checking in Bugzilla/Template.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v <-- Template.pm new revision: 1.116; previous revision: 1.115 done RCS file: /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/template-before_create.pl,v done Checking in extensions/example/code/template-before_create.pl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/template-before_create.pl,v <-- template-before_create.pl initial revision: 1.1 done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: