I can't remember what it's called, but there's a module that wraps a function call with pre and post handlers. Sounds perfect if you want to do this for a few functions.
Update: I found Hook::PrePostCall, but I think there's another one. I haven't used either.
In reply to Re: Tweaking 'return'.
by ikegami
in thread Tweaking 'return'.
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |