Manual:Hooks/SavePreferences

Details

 * $form: the PreferencesForm
 * $user: the User object to save preferences to
 * &$message: change this to set an error message (ignored if the hook does not return false)
 * $old: array of old options (added in 1.13)