Manual:Hooks/ArticlePrepareTextForEdit

From MediaWiki.org
Jump to: navigation, search
ArticlePrepareTextForEdit
Available from version 1.18.0 (r80428)
Called when preparing text to be saved.

Define function:
public static function onArticlePrepareTextForEdit( $article, $popts ) { ... }

Attach hook:
$wgHooks['ArticlePrepareTextForEdit'][] = 'MyExtensionHooks::onArticlePrepareTextForEdit';
Called from: Article.php

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


Details [edit]

  • $article: the article being saved
  • $popts: parser options to be used for pre-save transformation
Language: English  • Deutsch • Bahasa Indonesia • 日本語