<div class="gmail_quote">On Tue, Jun 16, 2009 at 10:52 PM, ravi <span dir="ltr"><<a href="mailto:ravi-lists@g8o.net">ravi-lists@g8o.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Jun 16, 2009, at 5:33 PM, Kevin Falcone wrote:<br>
> On Jun 16, 2009, at 5:19 PM, ravi wrote:<br>
><br>
>> any documentation on what is passed into a Callback? I am mostly<br>
>> Googling the Callbacks I am interested in to figure out, using<br>
>> examples others have provided, what the arguments may be, but that<br>
>> only works so far. I also have the RT Essentials book, but that has<br>
>> no<br>
>> mention of Callbacks at all!<br>
><br>
> Every Callback is different.<br>
><br>
> Go find the callback you're using and see what RT passes in.<br>
> $ grep -r callback /opt/rt3/share/html<br>
> Everything but CallbackName will be passed on in %ARGS<br>
><br>
</div>
<br>
In case you are curious: I am trying to modify the display of a custom<br>
field value. Unfortunately, there seems to be no Callback for each<br>
specific value in Elements/ShowCustomFields, so I may do a local copy<br>
of that whole script to make my changes,<font color="#888888"><br></font></blockquote></div><br>Ravi,<br><br>We just did exactly this sort of thing for a project I've been working on. I don't remember all the details now as I'm not at home at the moment. But IIRC it involved modifying Elements/ShowCustomField (note singular form) and then doing some checks for particular CF types. I got the idea off the wiki, so that would be a good place to start.<br>
<br>Drew<br>-- <br>----------------------------------------------------------------<br> Drew Taylor * Web development & consulting<br> Email: <a href="mailto:drew@drewtaylor.com">drew@drewtaylor.com</a> * Site implementation & hosting<br>
Web : <a href="http://www.drewtaylor.com">www.drewtaylor.com</a> * perl/mod_perl/DBI/mysql/postgres<br> ----------------------------------------------------------------<br>