Snog
Well-known member
Is it possible to trigger an error from within a listener? Either I'm missing something obvious or it isn't possible.
Code:
class My_Listner
{
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if(somecondition)
{
Do this
}else{
Trigger error
}
}
}