Extension:SocialProfile/Hooks/NewFriendAccepted
Appearance
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:NewFriendAccepted extensions.
The NewFriendAccepted hook is called at the end of addRelationship in UserRelationshipClass.php, right before purging UserProfile caches and returning. It has access to the User objects representing both the person who originally sent the relationship request ($userFrom) and the person who accepted it ($user).
When adding a foe, the NewFoeAccepted hook is instead run.
This hook was originally added in April 2011 for interoperability with the long-bitrotten and subsequently archived Sematic Social Profile extension.