Extension:SocialProfile/Hooks/SpecialUpdateProfile::saveSettings pref
SpecialUpdateProfile::saveSettings_pref | |
---|---|
Available from version ??? Called at the end of the saveSocialPreferences method |
|
Define function: | public static function onSpecialUpdateProfile_saveSettings_pref( $specialPage, $request ) { ... }
|
Attach hook: | $wgHooks['SpecialUpdateProfile::saveSettings_pref'][] = 'MyExtensionHooks::onSpecialUpdateProfile_saveSettings_pref';
|
Called from: | File(s): Category:Extension hooks provided by SocialProfileSocialProfile / UserProfile/includes/specials/SpecialUpdateProfile.php Function(s): saveSocialPreferences |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:SpecialUpdateProfile::saveSettings_pref extensions.
The SpecialUpdateProfile::saveSettings_pref hook is called at the end of the saveSocialPreferences
method in SpecialUpdateProfile.php
and it allows other extensions (like UserMailingList) to do their magic after the Special:UpdateProfile page has saved the data to the database.
The "administrative" version of the Special:UpdateProfile
page, Special:EditProfile
, which admins and/or other privileged users can use to change other users' social profiles to e.g. remove offensive content or spam etc. does not run this hook, only the Special:UpdateProfile
page runs this hook.
This hook was originally added in August 2011 to allow preserving for the UserMailingList extension functionality without including site-specific code in SocialProfile and allowing UserMailingList to cleanly interact with SocialProfile. As of July 2025 the UserMailingList has not been fixed up and publicly released; if you're interested in it, please let me know.