[Rt-commit] rt branch, 4.2/show-custom-fields-callbacks, created. rt-4.1.6-286-g91448ad
? sunnavy
sunnavy at bestpractical.com
Fri Mar 1 11:01:04 EST 2013
The branch, 4.2/show-custom-fields-callbacks has been created
at 91448adb3fd09f74172f81e16ec8f51efe3f320d (commit)
- Log -----------------------------------------------------------------
commit 91448adb3fd09f74172f81e16ec8f51efe3f320d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Mar 1 21:54:07 2013 +0800
more callbacks and callback args for ShowCustomFields
* add AfterCustomFieldValue callback
* add "Grouping" arg to AfterCustomfields
* add both "Grouping" and "Object" args to BeforeCustomFields
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 1bd56db..3e4d0a4 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-% $m->callback( CallbackName => 'BeforeCustomFields' );
+% $m->callback( CallbackName => 'BeforeCustomFields', Object => $Object, Grouping => $Grouping );
% if ($Table) {
<table>
% }
@@ -69,12 +69,13 @@
</ul>
% }
</td>
+% $m->callback( CallbackName => 'AfterCustomFieldValue', CustomField => $CustomField, Object => $Object, Grouping => $Grouping );
</tr>
% }
% if ($Table) {
</table>
% }
-% $m->callback( CallbackName => 'AfterCustomFields', Object => $Object );
+% $m->callback( CallbackName => 'AfterCustomFields', Object => $Object, Grouping => $Grouping );
<%INIT>
$m->callback(
%ARGS,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list