Extension:SocialProfile/Hooks/NewAvatarUploaded

Category:Extension hooks#NewAvatarUploaded
NewAvatarUploaded
Available from version ???
Called at the end of the avatar upload process when a new avatar has been successfully uploaded by the current user
Define function:
public static function onNewAvatarUploaded( $user ) { ... }
Attach hook:
$wgHooks['NewAvatarUploaded'][] = 'MyExtensionHooks::onNewAvatarUploaded';
Called from:File(s): Category:Extension hooks provided by SocialProfileSocialProfile / UserProfile/includes/specials/SpecialUploadAvatar.php, UserProfile/includes/api/ApiUploadAvatar.php
Function(s): execute, execute

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

The NewAvatarUploaded hook is called at the end of the avatar upload process when a new avatar has been successfully uploaded by the current user. It has access to the User object ($user) representing the person who updated their avatar.

Both the Special:UploadAvatar special page and its API equivalent run this hook.

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

Category:Extension hooks Category:Extension hooks provided by SocialProfile