I would like to add a Titleformatting variable i.e. %blah%. I have been looking at the SDK code and trying to find examples but I can't find any examples and the documentation on this is pretty sparse in the doxygen docs.
This is what I deciphered, I might be completely off-base, but here goes:
Deriving from titleformat_hook seems to be what I need to do. It has the following abstract overrides:
process_field
process_function
The way I understand (imagine) this is that a 'field' is what is enclosed in % characters, in this case 'blah'. The function gets called when %blah% in encountered during Titleformatting parsing. If this correct, I imagine that the parser has a facility to register titleformat_hooks. It loops through the registered hooks everytime it parses out a 'field', calling process_field until one returns true, at that point it calls that titleformat_hook's process_function and breaks out of the loop. If all this is correct, then I get it, but I cannot find a mechanism to register the hook, nor can I find a factory (which I would assume internally does the registering) to instantiate my hook.
Thanks for any help.