Issue #2652834 by david_garcia, Fabianx: Allow the use of callbacks instead of global functions in theme processor functions