Aryeh Gregor schreef:
On Wed, Aug 20, 2008 at 3:08 PM, Roan Kattouw roan.kattouw@home.nl wrote:
About the hooks: most hooks should be in the backend, yes. However, extensions like ConfirmEdit need to return certain information (CAPTCHA URLs) to the user. There's a UI hook to do that in the UI, and there's an API hook to return that information to API users.
What you *should* have is a backend hook that allows cancellation of an edit, with some way of passing back an error condition that can be displayed by both the human UI and the API.
Come to think of it, letting the hook pass a message key and letting the extension add that message key to ApiBase::$messageMap as well seems like a good idea. Still, we'd be breaking dozens of extensions that way. I'd like some input from chief developers (you, Brion, etc.) before I do that.
Roan Kattouw (Catrope)