Maybe not, but throwing an Exception is currently the only way to return something from a hook.
Otherwise, you need to program something custom.
Maybe not, but throwing an Exception is currently the only way to return something from a hook.
Otherwise, you need to program something custom.