diff options
author | mkanat%bugzilla.org <> | 2009-08-06 17:14:47 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-08-06 17:14:47 +0200 |
commit | 360c780767308810e4f26010cb9feb84bde68fd2 (patch) | |
tree | 1584eb4b87b7d45abfde23108fbbf9651badedea /Bugzilla | |
parent | c048675731f016f0b4b7eb1b901ad0c3d8dd69dd (diff) | |
download | bugzilla-360c780767308810e4f26010cb9feb84bde68fd2.tar.gz bugzilla-360c780767308810e4f26010cb9feb84bde68fd2.tar.xz |
Bug 508199: A hook for page.cgi
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Hook.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index a8f61a415..1d506424f 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -478,6 +478,33 @@ Params: =back +=head2 page-before_template + +This is a simple way to add your own pages to Bugzilla. This hooks C<page.cgi>, +which loads templates from F<template/en/default/pages>. For example, +C<page.cgi?id=fields.html> loads F<template/en/default/pages/fields.html.tmpl>. + +This hook is called right before the template is loaded, so that you can +pass your own variables to your own pages. + +Params: + +=over + +=item C<page_id> + +This is the name of the page being loaded, like C<fields.html>. + +Note that if two extensions use the same name, it is uncertain which will +override the others, so you should be careful with how you name your pages. + +=item C<vars> + +This is a hashref--put variables into here if you want them passed to +your template. + +=back + =head2 product-confirm_delete Called before displaying the confirmation message when deleting a product. |