[rt-users] Customizing with callback

David Chandek-Stark david.chandek.stark at duke.edu
Tue Oct 3 12:36:39 EDT 2006


I want change Line 150 of Elements/RT__Ticket/Column from:

        return \'<em>', loc('(pending other Collection)'), \'</em>';

to:

        return \'<em>', loc('(pending other ticket)'), \'</em>';

This is part of the definition of the $COLUMN_MAP variable in the code, 
and there is a callback at the end:

        $m->comp( '/Elements/Callback', COLUMN_MAP    => $COLUMN_MAP, 
_CallbackName => 'ColumnMap');

I have successfully used other callbacks in RT, but only when they are 
like empty slots that you can fill in, or blocks of code you can replace. 
The wiki page indicates you can use callbacks to modify variables, but I 
can't get it to work , or am missing something. How would I use a callback 
to customize this variable?

Thanks,
David

RT 3.6.1



More information about the rt-users mailing list