Jump to content

Extension:IntegratedProfiles/Hooks/IntegratedProfilesAfterMasthead

From mediawiki.org
IntegratedProfilesAfterMasthead
Available from version 0.1.0
Allows for appending HTML after the profile masthead.
Define function:
public static function onIntegratedProfilesAfterMasthead( string $&html, array $profile ) { ... }
Attach hook:
$wgHooks['IntegratedProfilesAfterMasthead'][] = 'MyExtensionHooks::onIntegratedProfilesAfterMasthead';
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:IntegratedProfilesAfterMasthead extensions.

This hook provides the functionality of appending HTML after the profile masthead. If you want to add a large amount of information, you should use the IntegratedProfilesGetTabs and IntegratedProfilesRenderTab hooks instead.

Details

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

See also

[edit]