Last modified: 2009-08-24 16:31:02 UTC
The Article class has hooks ArticlePageDataBefore and ArticlePageDataAfter to allow extensions to make use of custom fields added to the page SQL table. A similar hook for the User class would be very useful to let add more properties to a "user."
Created attachment 3005 [details] patch Proposed hook. (By the way, that should have been "...let extensions add..." earlier.)
Created attachment 3006 [details] patch Oops. New properties won't be of much use if they can't be saved ;) .
Created attachment 3007 [details] patch Added another hook to set default values. I think I'm done now.
Marking bug as FIXED, all the hooks in your patch now have an equivalent in MediaWiki: * UserLoadDefault (http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadDefaults) * UserSaveOptions (http://www.mediawiki.org/wiki/Manual:Hooks/UserSaveOptions) * UserLoadFromDatabase (http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadFromDatabase)