Yep, that's what I did.
Defined a function and put the name of the function in String.
Then clicked the login button twice in quick succession.
Normal thing happened ie. redirected to a normal SMF error screen.
So I was wondering if anybody has used it before so I could look at some code to see what else I need to do.
After experimenting a little, this isn't possible currently with what you want to do. I set the variable to my callable function in SSI.php, and attempted to spam login using the form generated by the SSI login function. After doing a bit of debugging, the SMF
constant is set to 1, and the $ssi_on_error_method
is actually null in the function where the callable function is supposed to be invoked.
It probably works so you can only do this when you call an error function INSIDE SSI.php, which isn't totally effective in your case.