Extension:SocialProfile/Hooks/PersonalInterestsChanged
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:PersonalInterestsChanged extensions.
The PersonalInterestsChanged hook is called at the end of saveProfilePersonal in SpecialUpdateProfile.php, right before purging UserProfile caches and returning. It has access to the UserIdentity object ($user) representing the person whose profile data was updated, and the new data ($interestsData).
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 April 2011 for interoperability with the long-bitrotten and subsequently archived Sematic Social Profile extension.