Manual:Hooks/AfterImportPage

From MediaWiki.org
Jump to: navigation, search
AfterImportPage
Available from version 1.17.0
When a page import is completed

Define function:
public static function onAfterImportPage( $title, $origTitle, $revCount, $sRevCount, $pageInfo ) { ... }

Attach hook:
$wgHooks['AfterImportPage'][] = 'MyExtensionHooks::onAfterImportPage';
Called from: Import.php

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


[edit] Details

  • $title: Title under which the revisions were imported
  • $origTitle: Title provided by the XML file
  • $revCount: Number of revisions in the XML file
  • $sRevCount: Number of sucessfully imported revisions
  • $pageInfo: associative array of page information
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox