Jump to content

Extension:SocialProfile/Hooks/RelationshipRemovedByUserID

From mediawiki.org
RelationshipRemovedByUserID
Available from version ???
Called at the end of removeRelationship when removing a relationship, right before updating social statistics for the users involved
Define function:
public static function onRelationshipRemovedByUserID( $user1, $user2 ) { ... }
Attach hook:
$wgHooks['RelationshipRemovedByUserID'][] = 'MyExtensionHooks::onRelationshipRemovedByUserID';
Called from:
File(s): SocialProfile / UserRelationship/includes/UserRelationshipClass.php
Function(s): removeRelationship

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:RelationshipRemovedByUserID extensions.

The RelationshipRemovedByUserID hook is called at the end of removeRelationship when removing a relationship, right before updating social statistics for the users involved. It has access to both the User objects representing the people whose relationship is being removed.

This hook was originally added in April 2011 for interoperability with the long-bitrotten and subsequently archived Sematic Social Profile extension.