diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-16 01:19:56 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-16 01:19:56 +0100 |
commit | cb5af02bba30efcdaa6a1d099d7d60c2881f3cc4 (patch) | |
tree | 044133c6e569a11c46f1ec8f49392ff3256e0131 | |
parent | bcd2c583433d27295bff332398935252ddcc5b7a (diff) | |
download | bugzilla-cb5af02bba30efcdaa6a1d099d7d60c2881f3cc4.tar.gz bugzilla-cb5af02bba30efcdaa6a1d099d7d60c2881f3cc4.tar.xz |
The sanitycheck_check hook documentation was in slightly the wrong place
in Bugzilla/Hook.pm.
-rw-r--r-- | Bugzilla/Hook.pm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index a02a04921..dcf82544d 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -880,32 +880,32 @@ Params: =back -=head2 sanitycheck_check +=head2 product_end_of_create -This hook allows for extra sanity checks to be added, for use by -F<sanitycheck.cgi>. +Called right after a new product has been created, allowing additional +changes to be made to the new product's attributes. This occurs inside of +a database transaction, so if the hook throws an error all previous +changes will be rolled back including the creation of the new product. Params: =over -=item C<status> - a CODEREF that allows status messages to be displayed -to the user. (F<sanitycheck.cgi>'s C<Status>) +=item C<product> - The new L<Bugzilla::Product> object that was just created. =back -=head2 product_end_of_create +=head2 sanitycheck_check -Called right after a new product has been created, allowing additional -changes to be made to the new product's attributes. This occurs inside of -a database transaction, so if the hook throws an error all previous -changes will be rolled back including the creation of the new product. +This hook allows for extra sanity checks to be added, for use by +F<sanitycheck.cgi>. Params: =over -=item C<product> - The new L<Bugzilla::Product> object that was just created. +=item C<status> - a CODEREF that allows status messages to be displayed +to the user. (F<sanitycheck.cgi>'s C<Status>) =back |