From: Max Kanat-Alexander Date: Tue, 16 Feb 2010 00:19:56 +0000 (-0800) Subject: The sanitycheck_check hook documentation was in slightly the wrong place X-Git-Tag: bugzilla-3.7.1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5af02bba30efcdaa6a1d099d7d60c2881f3cc4;p=thirdparty%2Fbugzilla.git The sanitycheck_check hook documentation was in slightly the wrong place in Bugzilla/Hook.pm. --- diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index a02a049211..dcf82544da 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. +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 - a CODEREF that allows status messages to be displayed -to the user. (F's C) +=item C - The new L 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. Params: =over -=item C - The new L object that was just created. +=item C - a CODEREF that allows status messages to be displayed +to the user. (F's C) =back