[Rt-commit] rt branch, 4.0/before-localization-callback-in-show-message-headers, created. rt-4.0.7-42-gb125ca6
? sunnavy
sunnavy at bestpractical.com
Mon Aug 27 21:45:39 EDT 2012
The branch, 4.0/before-localization-callback-in-show-message-headers has been created
at b125ca6da9d4241ad26eea81cdbbbbe3bd89522f (commit)
- Log -----------------------------------------------------------------
commit b125ca6da9d4241ad26eea81cdbbbbe3bd89522f
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Aug 28 09:44:09 2012 +0800
added BeforeLocalization callback
so extensions can change the headers before showing/localization
diff --git a/share/html/Ticket/Elements/ShowMessageHeaders b/share/html/Ticket/Elements/ShowMessageHeaders
index 3c86162..5a91668 100755
--- a/share/html/Ticket/Elements/ShowMessageHeaders
+++ b/share/html/Ticket/Elements/ShowMessageHeaders
@@ -80,6 +80,11 @@ foreach my $f (@headers) {
$m->comp('/Elements/MakeClicky', content => \$f->{'Value'}, ticket => $ticket, %ARGS);
}
+$m->callback(
+ CallbackName => 'BeforeLocalization',
+ headers => \@headers,
+);
+
if ( $Localize ) {
$_->{'Tag'} = loc($_->{'Tag'}) foreach @headers;
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list