Manual:Hooks/UndeleteForm::undelete

From MediaWiki.org
Jump to: navigation, search
UndeleteForm::undelete
Available from version 1.18.0 (r88235)
Called un UndeleteForm::undelete, after checking that the site is not in read-only mode, that the Title object is not null and after a PageArchive object has been constructed but before performing any further processing.

Define function:
public static function onUndeleteForm::undelete( &$archive, $title ) { ... }

Attach hook:
$wgHooks['UndeleteForm::undelete'][] = 'MyExtensionHooks::onUndeleteForm::undelete';
Called from: SpecialUndelete.php

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


[edit] Details

  • &$archive: PageArchive object
  • $title: Title object of the page that we're viewing
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox