class Hooks/T3libBefunc added, adapted from tx_news