Extension:Comments/Hooks/Comment::add
(Redirected from Manual:Hooks/Comment::add)
Comment::add | |
---|---|
Available from version ??? |
|
Define function: | public static function onComment_add( $comment, $commentId, $comment->page->id ) { ... }
|
Attach hook: | $wgHooks['Comment::add'][] = 'MyExtensionHooks::onComment_add';
|
Called from: | File(s): Comments / Comment.php Function(s): add |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Comment::add extensions.
Details
edit- $comment
- $commentId
- $comment->page->id