On 7/10/07, Simetrical Simetrical+wikilist@gmail.com wrote:
On 7/9/07, Jim Wilson wilson.jim.r@gmail.com wrote:
All of this sounds very interesting, and I wonder if any of it will affect how hooking methods to the 'userCan' hook operate?
That is, will methods which hook 'userCan' be required (or allowed) to follow the same array-based convention? It might be nice from an extension-development standpoint to be able to specify why it is that someone is being denied in the same manner as the core.
Hooks will be allowed, but not required, to follow the new convention. As always, possible responses will be 'true' for "yes", 'false' for "no", or 'null' for "no opinion". Of course, the hook will still be allowed to return an answer with the new array syntax.
It *should* go without saying that extensions should be able to use the new version of the function in the same way as core can.