Extension:Wikilog/WlComments::CommentToolLinks

From MediaWiki.org
Jump to: navigation, search
WlComments::CommentToolLinks
Available from version ???
Allow other extensions to add or remove tool links from a Wikilog comment.

Define function:
public static function onWlComments::CommentToolLinks( $formatter, &$tools, $comment ) { ... }

Attach hook:
$wgHooks['WlComments::CommentToolLinks'][] = 'MyExtensionHooks::onWlComments::CommentToolLinks';
Called from: Wikilog extension

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


[edit] Details

  • $formatter: WikilogCommentFormatter object.
  • $tools: Tool links that will be displayed. This is an associative array with short IDs ('edit', 'page', etc.) as indexes and fragments of HTML code as values.
  • $comment: WikilogComment object being formatted.
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox