Jump to content

Extension:IntegratedProfiles/Hooks/IntegratedProfilesAfterAvatar

From mediawiki.org
IntegratedProfilesAfterAvatar
Available from version 0.1.0
Allows for appending HTML inside the profile avatar within the masthead.
Define function:
public static function onIntegratedProfilesAfterAvatar( array $profile, string $&html ) { ... }
Attach hook:
$wgHooks['IntegratedProfilesAfterAvatar'][] = 'MyExtensionHooks::onIntegratedProfilesAfterAvatar';
Called from:
File(s): IntegratedProfiles / src/ProfileHandler.php
Function(s): render_to_output

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

This hook provides the functionality of appending HTML inside the profile avatar. The parameters of this hook are the same as IntegratedProfilesAfterMasthead, but inverse. This hook will likely be changed in the future.

Details

[edit]
  • $profile: An array of profile payloads.
  • &$html: HTML to append after the masthead.

See also

[edit]