Manual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges

From MediaWiki.org
Jump to: navigation, search
ArticleEditUpdatesDeleteFromRecentchanges
Available from version 1.6.0
Occurs before saving to the database.

Define function:
public static function onArticleEditUpdatesDeleteFromRecentchanges( &$article ) { ... }

Attach hook:
$wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = 'MyExtensionHooks::onArticleEditUpdatesDeleteFromRecentchanges';
Called from: WikiPage.php

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


[edit] Details

  • $article: the article (object) being updated or deleted

[edit] Notes

If returning false, old entries are not deleted from the recent changes list.

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox