Manual:Hooks/UserToggles

Background
The MediaWiki special page Special:Preferences contains a number of checkboxes. The values for these check boxes come from two sources:


 * a list of hard coded toggles defined in User.php
 * toggles added dynamically via the  hook.

Details
Implementers add their dynamically generated toggles by adding elements to. The array consists of a list of system messages, each of which identifies the user toggle and its accompanying localized check box message.

'''This hook is now removed. Please use GetPreferences instead.'''