< Extension:Moderation < Hooks
ModerationPending | |
---|---|
Available from version 1.27.0 Called when Extension:Moderation has successfully queued a new edit/upload |
|
Define function: | public static function onModerationPending( array $fields, $id ) { ... }
|
Attach hook: | $wgHooks['ModerationPending'][] = 'MyExtensionHooks::onModerationPending';
|
Called from: | File(s): Moderation / lib/ModerationNewChange.php Function(s): queue |
For more information about attaching hooks, see Manual:Hooks
For examples of other extensions using this hook, see Category:ModerationPending extensions.
Details
This hook is called when Extension:Moderation
has successfully saved an intercepted edit into the database.Parameters:
- $fields
- Fields of the newly inserted database row, e.g.
[ 'mod_timestamp' => 'something', 'mod_title' => '...', ... ]
. See Extension:Moderation/moderation_table for details. - $id
- mod_id of the newly inserted row.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.